39 lines
821 B
Desktop File
39 lines
821 B
Desktop File
[Unit]
|
|
Description=OS League Tools - Dev Environment
|
|
After=network.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=sonder
|
|
Group=sonder
|
|
WorkingDirectory=/home/sonder/leagues-tools-dev/os-league-tools-master
|
|
|
|
# Environment variables
|
|
Environment="NODE_ENV=development"
|
|
Environment="PORT=3001"
|
|
Environment="HOST=0.0.0.0"
|
|
# WebSocket config for hot reload through reverse proxy
|
|
Environment="WDS_SOCKET_PROTOCOL=wss"
|
|
Environment="WDS_SOCKET_HOST=dev.leagues.tools"
|
|
Environment="WDS_SOCKET_PORT=443"
|
|
|
|
# Start the dev server with hot reload
|
|
ExecStart=/usr/bin/npm run dev
|
|
|
|
# Restart policy
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=os-league-tools-dev
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|