stuff
This commit is contained in:
parent
a8386bbc76
commit
8103711c84
4 changed files with 27 additions and 0 deletions
|
@ -51,6 +51,8 @@
|
|||
src: "/usr/local/bin/forgejo-{{forgejo}}-linux-amd64"
|
||||
dest: "/usr/local/bin/forgejo "
|
||||
state: link
|
||||
notify:
|
||||
- Restart forgejo
|
||||
|
||||
|
||||
#Database
|
||||
|
|
0
debian12-forgejo/reamde.md
Normal file
0
debian12-forgejo/reamde.md
Normal file
0
debian12-forgejo/templates/app.ini
Normal file
0
debian12-forgejo/templates/app.ini
Normal file
25
debian12-forgejo/templates/forgejo.service
Normal file
25
debian12-forgejo/templates/forgejo.service
Normal 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
|
Loading…
Reference in a new issue