pounce/systemd/pounce-frontend.service
Yves Gugger 6e9c5a1394
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Add systemd auto-start services + realistic feature updates
2025-12-17 09:36:59 +01:00

28 lines
672 B
Desktop File

[Unit]
Description=Pounce Frontend (Next.js Standalone)
After=network.target pounce-backend.service
Wants=pounce-backend.service
[Service]
Type=simple
User=user
Group=user
WorkingDirectory=/home/user/pounce/frontend
Environment="NODE_ENV=production"
Environment="HOSTNAME=0.0.0.0"
Environment="PORT=3000"
Environment="BACKEND_URL=http://127.0.0.1:8000"
ExecStart=/usr/bin/node /home/user/pounce/frontend/.next/standalone/server.js
Restart=always
RestartSec=5
StandardOutput=append:/home/user/pounce/frontend/frontend.log
StandardError=append:/home/user/pounce/frontend/frontend.log
# Hardening
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target