Import deployment configuration: deploy/systemd/coaxyspanel-backend.service
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=CoaxysPanel Fastify backend
|
||||||
|
After=network.target postgresql@18-main.service redis-server.service
|
||||||
|
Wants=postgresql@18-main.service redis-server.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/srv/CoaxysPanel/backend
|
||||||
|
EnvironmentFile=/srv/CoaxysPanel/backend/.env
|
||||||
|
Environment=NODE_ENV=production
|
||||||
|
Environment=HOST=127.0.0.1
|
||||||
|
Environment=PORT=3020
|
||||||
|
Environment=PATH=/root/.nvm/versions/node/v20.20.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
ExecStart=/root/.nvm/versions/node/v20.20.2/bin/npm run start
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
KillSignal=SIGTERM
|
||||||
|
TimeoutStopSec=30
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=full
|
||||||
|
ReadWritePaths=/srv/CoaxysPanel/backend /var/lib/coaxyspanel /var/backups/coaxyspanel
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user