[Unit]
Description=Guanghu Fifth Domain domestic Forgejo primary
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=git
Group=git
SupplementaryGroups=guanghu
WorkingDirectory=/opt/forgejo
ExecStart=/usr/local/bin/forgejo web -c /opt/forgejo/custom/conf/app.ini --work-path /opt/forgejo
Restart=always
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/forgejo /var/lib/guanghu/forgejo

[Install]
WantedBy=multi-user.target
