set vars instead of hard links

This commit is contained in:
meaz 2023-06-10 12:01:49 +02:00
parent f8ff6d8fd8
commit ec4303be1c
Signed by: meaz
GPG key ID: CD7A47B2F1ED43B4

View file

@ -19,11 +19,11 @@ RestartSec=2s
Type=simple
User={{ forgejo_user }}
Group={{ forgejo_group }}
WorkingDirectory=/var/lib/forgejo/
WorkingDirectory={{ forgejo_lib_dir }}
ExecStart={{ forgejo_bindir }}/gitea web -c {{ forgejo_confdir }}
Restart=always
RestartSec=3
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} GITEA_WORK_DIR=/var/lib/forgejo
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} GITEA_WORK_DIR={{ forgejo_lib_dir }}
# If you want to bind Forgejo to a port below 1024 uncomment
# the two values below
###