- 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>
18 lines
344 B
Desktop File
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
|