Web Server: Difference between revisions
(→PM2) |
No edit summary |
||
Line 2: | Line 2: | ||
==PM2== | ==PM2== | ||
'''PM2''' is a process manager that serves the [https://en.wikipedia.org/wiki/Npm | '''PM2''' is a process manager that serves the [https://en.wikipedia.org/wiki/Npm npm] NexJS App [https://wreckroom.nyc https://wreckroom.nyc] | ||
Upon restarting the Synology, you will to restart PM2 in <code>/volume1/wreckroom.nyc/wreckroom</code> by following these steps: | Upon restarting the Synology, you will to restart PM2 in <code>/volume1/wreckroom.nyc/wreckroom</code> by following these steps: | ||
#End all processes: <code>sudo pm2 delete all</code>. | #End all processes: <code>sudo pm2 delete all</code>. | ||
#Start the [https://en.wikipedia.org/wiki/Npm | #Start the [https://en.wikipedia.org/wiki/Npm <code>npm</code>] process using '''PM2''': <code>sudo pm2 start npm -- start</code>. | ||
If you are having issues with '''PM2''' process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), use the above steps as well. | If you are having issues with '''PM2''' process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), use the above steps as well. |
Revision as of 22:14, 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:
- End all processes:
sudo pm2 delete all
. - Start the
npm
process using PM2:sudo pm2 start npm -- start
.
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 :)