Hosting website on NAS

Currently reading
Hosting website on NAS

4
0
NAS
DS920+
Operating system
  1. Windows
Mobile operating system
  1. iOS
Hi,

I developped a dash/plotly/python on my PC. I also duplicated this app on my mac-mini server and so I can access the app on my local network (it works fine on either my PC or the mac-mini). I would like now to deploy this app on my DS920+ and have this app available from outside my local network. I don't intend to scale it for more than 5 users. The website currently relies on Flask (but I am considering switching to Django if that helps) and the dahsboard is rather dynamic: it plots graphs based on users's inputs. From what I read there are multiple options but I can't figure out the "right" way to proceed (I haven't found a tutorial to take me by the hand...):

I could try to make a docker image of my app but then how do I "publish/deploy" the image outside my local network?
I could look into deploying it on apache2 (which is available in the package center) but then I am missing a bit of directions on how to set it up. Apparently it would require mod_wsgi (?)
I could create a VM based on Ubuntu but then what should I use (and how) this VM to deploy my app?

As you can see this is a bit confusing to me and not very clear in my head... Any help/suggestions would be greatly appreciated
 
Well, you have several options here.

1st you could simply run an Apache container using the official image (Docker Hub) and then implement and deploy your app inside it. You can add any mod that you might need on top of it using the standard command lines.

This is a standard web deployment over an already running webserver. The reason why this might be a better solution than using apache that comes with DSM is that you will be sandboxed better, will not depend on DSM updates and limitations, and will be able to expand the instance with any solution (mod) that you want and need.

2nd, you could run a VM but imho this would be an overkill on the resources needed to make this happen.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

agreed, don’t use the router configuration on the nas. This uses upnp protocol where it will talk to your...
Replies
3
Views
1,191
  • Question
OK. I accept your point. We still love Synology even though they're so good at blackmailing. :) ... let...
Replies
4
Views
1,765
I was using Hover for DNS and Mail but they don't do DDNS. I wanted to host a website on the Synology so...
Replies
6
Views
1,243
Have you thought of using the DS918+ as a Hyper backup target? You can then restore any file or the whole...
Replies
3
Views
546
Thanks PunchCardBoss, Changing the subnet on the Deco to the default Netgear, basically worked. I was...
Replies
2
Views
736
Considering the current state, just connect to that IP address and continue with dsm installation. The...
Replies
4
Views
896
Does browsing for Synology Web Assistant find your NAS? That’s one way to try to find it on the LAN. Other...
Replies
3
Views
949

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top