rebours/deploy/rebours.service
ordinarthur 76209f1e5d deploy: switch from Coolify to direct VPS deploy (nginx + systemd)
- nginx.conf: add proxy for /api, /admin, /robots.txt, /sitemap.xml to Fastify:3001
- deploy.sh: one-command rsync + build + restart
- deploy/setup.sh: first-time VPS setup (node, pnpm, nginx, systemd)
- deploy/rebours.service: systemd unit for Fastify server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 09:52:48 +01:00

18 lines
344 B
Desktop File

[Unit]
Description=Rebours Fastify Server
After=network.target
[Service]
Type=simple
User=ordinarthur
WorkingDirectory=/var/www/html/rebours
EnvironmentFile=/var/www/html/rebours/.env
Environment=NODE_ENV=production
Environment=PORT=3001
ExecStart=/usr/bin/node server.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target