[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=/usr/bin/go run .

# Environment variables
Environment="GO_ENV=production"
Environment="PORT=1999"
Environment="BASE_URL=https://juan.andres.morenorub.io"
Environment="VERSION=1.0.0"

# 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
