Transition to Gitea workflows
This commit is contained in:
35
os-league-tools.service
Normal file
35
os-league-tools.service
Normal file
@@ -0,0 +1,35 @@
|
||||
[Unit]
|
||||
Description=OS League Tools - OSRS Leagues Hub
|
||||
After=network.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=sonder
|
||||
Group=sonder
|
||||
WorkingDirectory=/home/sonder/leagues-tools/os-league-tools-master
|
||||
|
||||
# Environment variables
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="PORT=3000"
|
||||
# Uncomment and set if you have a backend API:
|
||||
# Environment="REACT_APP_RELDO_URL=http://localhost:8080"
|
||||
|
||||
# Start the application (serves the pre-built static files)
|
||||
ExecStart=/usr/bin/npm start
|
||||
|
||||
# Restart policy
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=os-league-tools
|
||||
|
||||
# Security hardening
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user