[Unit]
Description=Church Music Database Frontend (Production)
After=network.target

[Service]
Type=simple
User=pts
Group=pts
WorkingDirectory=/media/pts/Website/Church_HOP_MusicData/new-site/frontend
Environment="NODE_ENV=production"
ExecStart=/usr/bin/npx serve dist -l 5100 -n
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=church-music-frontend

# Security settings
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
