Web Server: Difference between revisions
Jump to navigation
Jump to search
(→PM2) |
(→PM2) |
||
Line 1: | Line 1: | ||
===PM2=== | ===PM2=== | ||
'''PM2''' is a process manager that serves the NPM NexJS App <code>wreckroom.nyc</code>. | '''PM2''' is a process manager that serves the NPM NexJS App <code>https://wreckroom.nyc</code>. | ||
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. | ||
Line 7: | Line 7: | ||
#If you are having issues with '''PM2''' process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), run: <code>sudo pm2 delete all</code>. This will end all processes. | #If you are having issues with '''PM2''' process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), run: <code>sudo pm2 delete all</code>. This will end all processes. | ||
#Then, run <code>sudo pm2 start npm -- start</code> and that should cause '''PM2''' to serve correctly. | ##Then, run <code>sudo pm2 start npm -- start</code> and that should cause '''PM2''' to serve correctly. | ||
===Certificates=== | ===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 :) | 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 :) |
Revision as of 22:09, 29 December 2023
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.
- If you are having issues with PM2 process manager serving the NextJs app (when
sudo npm run start
works fine), run:sudo pm2 delete all
. This will end all processes.
- Then, run
sudo pm2 start npm -- start
and that should cause PM2 to serve correctly.
- Then, run
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 :)