Add git role
This commit is contained in:
parent
303e188e24
commit
5dd519d88a
9 changed files with 215 additions and 0 deletions
18
roles/git-server/templates/forgejo.service
Normal file
18
roles/git-server/templates/forgejo.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Forgejo
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart={{ git_server_working_dir }}/forgejo web --config /etc/forgejo.ini
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User={{ git_server_user }}
|
||||
WorkingDirectory={{ git_server_working_dir }}
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue