infra/templates/forgejo/forgejo.service.j2
Nikos Papadakis a06eda99d3
Forgejo
2023-12-08 17:00:38 +02:00

19 lines
473 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
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target