From da696836a8ee609bbec012fe70c90c6b4d446305 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sat, 9 Nov 2024 17:50:18 +0500 Subject: [PATCH] Adjust freshrss settings - Extend session duration - Configure background jobs --- roles/freshrss/meta/argument_specs.yml | 6 ++++++ roles/freshrss/tasks/main.yml | 3 +++ roles/freshrss/vars/main.yml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/roles/freshrss/meta/argument_specs.yml b/roles/freshrss/meta/argument_specs.yml index c5ecfa2..66b3473 100644 --- a/roles/freshrss/meta/argument_specs.yml +++ b/roles/freshrss/meta/argument_specs.yml @@ -4,6 +4,8 @@ argument_specs: options: tz: type: str + cron_min: + type: str oidc_enabled: type: int oidc_provider_metadata_url: @@ -20,3 +22,7 @@ argument_specs: type: str oidc_x_forwarded_headers: type: str + oidc_session_inactivity_timeout: + type: int + oidc_session_max_duration: + type: int diff --git a/roles/freshrss/tasks/main.yml b/roles/freshrss/tasks/main.yml index ceacced..95adc68 100644 --- a/roles/freshrss/tasks/main.yml +++ b/roles/freshrss/tasks/main.yml @@ -13,12 +13,15 @@ image: freshrss/freshrss:1.24.3 env: TZ: "{{ tz }}" + CRON_MIN: "{{ cron_min }}" OIDC_ENABLED: "{{ oidc_enabled | string }}" OIDC_PROVIDER_METADATA_URL: "{{ oidc_provider_metadata_url }}" OIDC_CLIENT_ID: "{{ oidc_client_id }}" OIDC_CLIENT_SECRET: "{{ oidc_client_secret }}" OIDC_CLIENT_CRYPTO_KEY: "{{ oidc_client_crypto_key }}" OIDC_REMOTE_USER_CLAIM: "{{ oidc_remote_user_claim }}" + OIDC_SESSION_INACTIVITY_TIMEOUT: "{{ oidc_session_inactivity_timeout | string }}" + OIDC_SESSION_MAX_DURATION: "{{ oidc_session_max_duration | string }}" OIDC_SCOPES: "{{ oidc_scopes }}" OIDC_X_FORWARDED_HEADERS: "{{ oidc_x_forwarded_headers }}" networks: diff --git a/roles/freshrss/vars/main.yml b/roles/freshrss/vars/main.yml index 1f12ddd..7d947b9 100644 --- a/roles/freshrss/vars/main.yml +++ b/roles/freshrss/vars/main.yml @@ -1,4 +1,5 @@ tz: Asia/Yekaterinburg +cron_min: 11,41 oidc_enabled: 0 oidc_provider_metadata_url: "" oidc_client_id: "" @@ -7,3 +8,5 @@ oidc_client_crypto_key: "" oidc_remote_user_claim: preferred_username oidc_scopes: openid profile email oidc_x_forwarded_headers: X-Forwarded-Proto +oidc_session_inactivity_timeout: 21600 # 6 hours +oidc_session_max_duration: 86400 # 24 hours