This commit is contained in:
Kekskurse 2023-08-05 19:47:48 +02:00
parent a8386bbc76
commit 8103711c84
Signed by: kekskurse
GPG Key ID: 728ACCB59341E7E4
4 changed files with 27 additions and 0 deletions

View File

@ -51,6 +51,8 @@
src: "/usr/local/bin/forgejo-{{forgejo}}-linux-amd64"
dest: "/usr/local/bin/forgejo "
state: link
notify:
- Restart forgejo
#Database

View File

View File

View File

@ -0,0 +1,25 @@
[Unit]
Description=Forgejo (Beyond coding. We forge.)
After=syslog.target
After=network.target
Wants=mariadb.service
After=mariadb.service
#Wants=redis.service
#After=redis.service
[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=simple
User=git
Group=git
WorkingDirectory=/var/lib/forgejo/
ExecStart=/usr/local/bin/forgejo web --config /etc/forgejo/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/forgejo
[Install]
WantedBy=multi-user.target