NodeJS application on WebStation Virtual Host

This forum is for devlopers to discuss questions about apps/plug-ins/extension modules/API specifically developed for using with Synology DiskStations.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
bogdanim36
I'm New!
I'm New!
Posts: 6
Joined: Tue Nov 14, 2017 10:13 am

NodeJS application on WebStation Virtual Host

Unread post by bogdanim36 » Tue Nov 14, 2017 5:16 pm

I have my first nodeJs application, which I try to install on my Synology DS216Play.
I create a Virtual Host YamahaCtrl, pointed on /volume1/web/YamahaCtrl folder, where I have app files.
I need to start app server . I did that with port 8080.
I didn't find a way to set Virtual host to use the api on this port:
- If I use setting Name-based, the api not pointed to same port (and url).
- If I use setting Port-based, I cannot start nodejs server on same port.
What solution do I have

bogdanim36
I'm New!
I'm New!
Posts: 6
Joined: Tue Nov 14, 2017 10:13 am

Re: NodeJS application on WebStation Virtual Host

Unread post by bogdanim36 » Wed Nov 15, 2017 7:18 am

I figured out what the problem was:
a mistake on setup static files location on nodejs application.
It's no need to configure something on NAS, just to start application on a available port.

Post Reply

Return to “Developer Discussion Room”