20 lines
519 B
Text
20 lines
519 B
Text
|
[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
|