infra/templates/forgejo/forgejo.service.j2
2025-02-18 23:34:39 +02:00

19 lines
519 B
Django/Jinja

[Unit]
Description=Forgejo
After=syslog.target
After=network.target
[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
Type=notify
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/forgejo web --config /etc/gitea/app.ini --custom-path /usr/local/share/forgejo/custom
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target