From 4d6dc0de5443a29c460249c213be4e5fa0ffaf19 Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Tue, 10 Dec 2024 17:17:21 +0100 Subject: [PATCH] expose gitea_session_provider_config --- defaults/main.yml | 1 + templates/gitea.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index b338783..961598f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -204,6 +204,7 @@ gitea_mailer_extra_config: '' # Session (session) # -> https://docs.gitea.io/en-us/config-cheat-sheet/#session-session gitea_session_provider: 'file' +gitea_session_provider_config: "{{ gitea_home }}/data/sessions" gitea_session_extra_config: '' # Picture (picture) diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 986257a..c536051 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -216,7 +216,7 @@ SEND_AS_PLAIN_TEXT = {{ gitea_mailer_send_as_plaintext | ternary('true', 'false' ; -> https://docs.gitea.com/next/administration/config-cheat-sheet/#session-session [session] PROVIDER = {{ gitea_session_provider }} -PROVIDER_CONFIG = {{ gitea_home }}/data/sessions +PROVIDER_CONFIG = {{ gitea_session_provider_config }} {{ gitea_session_extra_config }} ; ;