Files
cv-site/config/systemd/cv.service
T

38 lines
867 B
Desktop File

[Unit]
Description=CV Website Service
After=network.target
Wants=network-online.target
[Service]
Type=simple
User=txeo
Group=txeo
WorkingDirectory=/home/txeo/Git/yo/cv
ExecStart=/snap/bin/go run .
# Load environment from .env file (API keys, SMTP, chat config)
EnvironmentFile=/home/txeo/Git/yo/cv/.env
# Production overrides (take precedence over .env)
Environment="GO_ENV=production"
Environment="PORT=1999"
Environment="BASE_URL=https://juan.andres.morenorub.io"
Environment="TEMPLATE_HOT_RELOAD=false"
Environment="BEHIND_PROXY=true"
Environment="TRUSTED_PROXY_IP=127.0.0.1"
Environment="ALLOWED_ORIGINS=juan.andres.morenorub.io"
# Restart policy
Restart=always
RestartSec=5
StartLimitInterval=60
StartLimitBurst=3
# Logging
StandardOutput=append:/var/log/cv.log
StandardError=append:/var/log/cv.log
SyslogIdentifier=cv
[Install]
WantedBy=multi-user.target