From 745d5740d034c8ce06cd4f3cd3af64814faadc65 Mon Sep 17 00:00:00 2001 From: meaz Date: Sun, 10 Sep 2023 05:58:45 +0000 Subject: [PATCH] add FORGEJO_WORK_DIR when running forgejo (#34) Co-authored-by: meaz Reviewed-on: https://git.disroot.org/Disroot-Ansible/forgejo/pulls/34 Reviewed-by: muppeth --- templates/etc/forgejo/app.ini.j2 | 4 +++- templates/etc/systemd/system/forgejo.service.j2 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/etc/forgejo/app.ini.j2 b/templates/etc/forgejo/app.ini.j2 index d75f891..1feda31 100644 --- a/templates/etc/forgejo/app.ini.j2 +++ b/templates/etc/forgejo/app.ini.j2 @@ -103,4 +103,6 @@ RENDER_COMMAND = cat IS_INPUT_FILE = true RENDER_CONTENT_MODE = sanitized {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %} + + diff --git a/templates/etc/systemd/system/forgejo.service.j2 b/templates/etc/systemd/system/forgejo.service.j2 index e467f3d..1db9ab4 100644 --- a/templates/etc/systemd/system/forgejo.service.j2 +++ b/templates/etc/systemd/system/forgejo.service.j2 @@ -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 ###