From 461d6c51b0428b4698cbdaf9624e7b67159197a9 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 21 Jul 2021 10:00:06 +0200 Subject: [PATCH] Update to 2021-07-21 10:00 --- roles/bookstack/defaults/main.yml | 3 +++ roles/bookstack/templates/env.j2 | 2 ++ roles/seafile/defaults/main.yml | 2 +- roles/seafile/files/seafile-pro-server_8.0.7_x86-64_CentOS.tar.gz | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 roles/seafile/files/seafile-pro-server_8.0.7_x86-64_CentOS.tar.gz diff --git a/roles/bookstack/defaults/main.yml b/roles/bookstack/defaults/main.yml index d53e18e..f39d595 100644 --- a/roles/bookstack/defaults/main.yml +++ b/roles/bookstack/defaults/main.yml @@ -59,6 +59,9 @@ bookstack_email_encryption: 'null' # Default lang bookstack_default_lang: fr +# Session lifetime, in minutes +bookstack_session_lifetime: 480 + # You can set custom directive with this: # bookstack_settings: # AUTH_METHOD: saml2 diff --git a/roles/bookstack/templates/env.j2 b/roles/bookstack/templates/env.j2 index 1029023..93e5272 100644 --- a/roles/bookstack/templates/env.j2 +++ b/roles/bookstack/templates/env.j2 @@ -16,7 +16,9 @@ MAIL_PASSWORD={{ bookstack_email_pass | quote }} MAIL_ENCRYPTION={{ bookstack_email_encryption }} APP_TIMEZONE={{ system_tz | default('UTC') }} APP_LANG={{ bookstack_default_lang }} +SESSION_SECURE_COOKIE={{ (bookstack_public_url | urlsplit('scheme') == 'https') | ternary('true','false') }} SESSION_COOKIE_NAME=bookstack_{{ bookstack_id }}_session +SESSION_LIFETIME={{ bookstack_session_lifetime }} CACHE_PREFIX=bookstack_{{ bookstack_id }} {% for key in bookstack_settings.keys() | list %} {{ key }}="{{ bookstack_settings[key] }}" diff --git a/roles/seafile/defaults/main.yml b/roles/seafile/defaults/main.yml index 5264b6d..d3bfcdf 100644 --- a/roles/seafile/defaults/main.yml +++ b/roles/seafile/defaults/main.yml @@ -11,7 +11,7 @@ # MaxUsers = "9" # Mode = "subscription" # etc... -seafile_version: "{{ seafile_license is defined | ternary('8.0.5','8.0.6') }}" +seafile_version: "{{ seafile_license is defined | ternary('8.0.7','8.0.6') }}" # Archive URL and sha1 are only used for the community version seafile_archive_url: https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_{{ seafile_version }}_x86-64.tar.gz diff --git a/roles/seafile/files/seafile-pro-server_8.0.7_x86-64_CentOS.tar.gz b/roles/seafile/files/seafile-pro-server_8.0.7_x86-64_CentOS.tar.gz new file mode 100644 index 0000000..85b8d79 --- /dev/null +++ b/roles/seafile/files/seafile-pro-server_8.0.7_x86-64_CentOS.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ee17c44959255039c13de2469a17df6fc36b068b7d16384b5cafc7ea39363c4 +size 125936667