You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-15 00:05:11 +02:00
Extend roundcube's session lifetime
This commit is contained in:
@ -13,7 +13,7 @@ $config['log_driver'] = 'stdout';
|
|||||||
$config['zipdownload_selection'] = true;
|
$config['zipdownload_selection'] = true;
|
||||||
$config['enable_spellcheck'] = true;
|
$config['enable_spellcheck'] = true;
|
||||||
$config['spellcheck_engine'] = 'pspell';
|
$config['spellcheck_engine'] = 'pspell';
|
||||||
$config['session_lifetime'] = {{ SESSION_TIMEOUT_MINUTES | int }};
|
$config['session_lifetime'] = {{ (((PERMANENT_SESSION_LIFETIME | default(10800)) | int)/3600) | int }};
|
||||||
$config['request_path'] = '{{ WEB_WEBMAIL or "none" }}';
|
$config['request_path'] = '{{ WEB_WEBMAIL or "none" }}';
|
||||||
$config['trusted_host_patterns'] = [ {{ HOSTNAMES.split(",") | map("tojson") | join(',') }}];
|
$config['trusted_host_patterns'] = [ {{ HOSTNAMES.split(",") | map("tojson") | join(',') }}];
|
||||||
|
|
||||||
|
@ -62,9 +62,6 @@ context["PLUGINS"] = ",".join(f"'{p}'" for p in plugins)
|
|||||||
# add overrides
|
# add overrides
|
||||||
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith((".inc", ".inc.php"))) if os.path.isdir("/overrides") else []
|
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith((".inc", ".inc.php"))) if os.path.isdir("/overrides") else []
|
||||||
|
|
||||||
# calculate variables for config file
|
|
||||||
context["SESSION_TIMEOUT_MINUTES"] = max(int(env.get("SESSION_TIMEOUT", "3600")) // 60, 1)
|
|
||||||
|
|
||||||
# create config files
|
# create config files
|
||||||
conf.jinja("/conf/config.inc.php", context, "/var/www/roundcube/config/config.inc.php")
|
conf.jinja("/conf/config.inc.php", context, "/var/www/roundcube/config/config.inc.php")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user