add FORGEJO_WORK_DIR when running forgejo (#34)

Co-authored-by: meaz <meaz@disroot.org>
Reviewed-on: #34
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
meaz 2023-09-10 05:58:45 +00:00
parent a5c2c1b890
commit 745d5740d0
2 changed files with 4 additions and 2 deletions

View File

@ -103,4 +103,6 @@ RENDER_COMMAND = cat
IS_INPUT_FILE = true
RENDER_CONTENT_MODE = sanitized
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -23,7 +23,7 @@ WorkingDirectory=/var/lib/forgejo/
ExecStart={{ forgejo_bindir }}/forgejo web -c {{ forgejo_confdir }}
Restart=always
RestartSec=3
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} FORGEJO_WORK_DIR=/var/lib/forgejo
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} FORGEJO_WORK_DIR=/var/lib/forgejo FORGEJO_CUSTOM={{ forgejo_theme_dir }}
# If you want to bind Forgejo to a port below 1024 uncomment
# the two values below
###