# ───────────────────────────────────────────────────────────────────────────── # systemd unit for the SkateSpots AI proxy (Bun, on the CVM host). # Installed by scripts/deploy-ai-proxy.sh — do not hand-edit on the host. # ───────────────────────────────────────────────────────────────────────────── [Unit] Description=SkateSpots AI proxy (Routstr) After=network-online.target Wants=network-online.target [Service] Type=simple User=ubuntu WorkingDirectory=/home/ubuntu/skatespots-ai EnvironmentFile=/home/ubuntu/skatespots-ai/.env ExecStart=/home/ubuntu/.bun/bin/bun run server.ts Restart=always RestartSec=5 StandardOutput=journal StandardError=journal SyslogIdentifier=skatespots-ai # Basic hardening — mirrors the CVM unit (bun stays happy; binds localhost only). NoNewPrivileges=true PrivateTmp=true [Install] WantedBy=multi-user.target