Web Server: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The Synology hosts <code>https://wreckroom.nyc</code> over 443 using a NGINX Reverse Proxy server | The Synology hosts <code>https://wreckroom.nyc</code> over 443 using a NGINX Reverse Proxy server at <code>localhost:3000</code>. | ||
==PM2== | ==PM2== | ||
Revision as of 22:10, 29 December 2023
The Synology hosts https://wreckroom.nyc
over 443 using a NGINX Reverse Proxy server at localhost:3000
.
PM2
PM2 is a process manager that serves the NPM NexJS App https://wreckroom.nyc
.
Upon restarting the Synology, you will to restart PM2 in /volume1/wreckroom.nyc/wreckroom
by following these steps.
- Run:
sudo pm2 delete all
. This will end all processes. - Run:
sudo pm2 start npm -- start
and that should cause PM2 to serve correctly.
If you are having issues with PM2 process manager serving the NextJs app (when sudo npm run start
works fine), use the above steps as well.
Certificates
If you make changes to a Certificate's FQDN, in addition to migrating the certificate, you must go to Control Panel / Login Portal / Advanced / Reverse Proxy. The hostname must be changed there for everything to work properly! This took half a day to figure out last time, hope it saves you some time in the future :)