forgejo: Initial version of role
This commit is contained in:
parent
4031afdbdb
commit
c479b7fcea
6 changed files with 217 additions and 0 deletions
16
roles/forgejo/files/forgejo.service
Normal file
16
roles/forgejo/files/forgejo.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Forgejo (Beyond coding. We forge.)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=forgejo
|
||||
Group=forgejo
|
||||
WorkingDirectory=/srv/forgejo
|
||||
ExecStart=/usr/local/bin/forgejo web --config /etc/forgejo/app.ini
|
||||
Restart=always
|
||||
Environment=HOME=/srv/forgejo FORGEJO_WORK_DIR=/srv/forgejo
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue