Files
CoaxysPanel/deploy/systemd/coaxyspanel-backend.service
T
arsam 973feee2fd 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.
2026-09-18 23:09:53 +03:30

26 lines
785 B
Desktop File

[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