From 71ea80ed3e81e0faa34577ffe79ff1c594dc2822 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 22 Jun 2023 11:15:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Support=20missing=20Configuratio?= =?UTF-8?q?n=20Options=20for=201.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defaults/main.yml | 11 ++++++++++- templates/settings.json.j2 | 13 +++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index b38382d..c212ebf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -79,6 +79,9 @@ etherpad_allow_unknown_file_ends: "true" etherpad_require_authentication: "false" etherpad_require_authorization: "false" etherpad_trust_proxy: "false" +etherpad_cookie_same_site: "Lax" +etherpad_cookie_session_lifetime: 864000000 # = 10d * 24h/d * 60m/h * 60s/m * 1000ms/s +etherpad_cookie_session_refresh_interval: 864000000 # = 10d * 24h/d * 60m/h * 60s/m * 1000ms/s etherpad_socket_transport_protocols: ["xhr-polling", "jsonp-polling", "htmlfile"] etherpad_load_test: "false" etherpad_indentation_on_new_line: "false" @@ -87,6 +90,12 @@ etherpad_commit_rate_limiting_duration: 1 etherpad_commit_rate_limiting_points: 10 etherpad_expose_version: "false" etherpad_socket_max_http_buffer_size: 10000 +etherpad_dump_on_unclean_exit: "false" +etherpad_import_export_rate_limiting_window_ms: 90000 +etherpad_import_export_rate_limiting_max: 10 +etherpad_import_max_file_size: 52428800 # 50 * 1024 * 1024 +etherpad_custom_locale_strings: {} +etherpad_enable_admin_ui_tests: "false" etherpad_toolbar: left: - ["bold", "italic", "underline", "strikethrough"] @@ -165,6 +174,6 @@ etherpad_headerauth_displayname_header: x-authenticated-name etherpad_python_mysql_package: "python3-mysqldb" # Copy a custom logo file to src/static/ -#etherpad_custom_logo_src: +#etherpad_custom_logo_src: etherpad_node_path: "/usr/bin/node" diff --git a/templates/settings.json.j2 b/templates/settings.json.j2 index a72ec5a..248e1ec 100644 --- a/templates/settings.json.j2 +++ b/templates/settings.json.j2 @@ -104,6 +104,11 @@ "requireAuthentication": {{ etherpad_require_authentication }}, "requireAuthorization": {{ etherpad_require_authorization }}, "trustProxy": {{ etherpad_trust_proxy }}, + "cookie": { + "sameSite": "{{ etherpad_cookie_same_site }}", + "sessionLifetime": {{ etherpad_cookie_session_lifetime }}, + "sessionRefreshInterval": {{ etherpad_cookie_session_refresh_interval }} + } "disableIPlogging": {{ etherpad_disable_ip_logging }}, "automaticReconnectionTimeout": {{ etherpad_automatic_reconnection_timeout }}, "scrollWhenFocusLineIsOutOfViewport": { @@ -173,4 +178,12 @@ "socketIo": { "maxHttpBufferSize": {{ etherpad_socket_max_http_buffer_size }} }, + "dumpOnUncleanExit": {{ etherpad_dump_on_unclean_exit }}, + "importExportRateLimiting": { + "windowMs": {{ etherpad_import_export_rate_limiting_window_ms }}, + "max": {{ etherpad_import_export_rate_limiting_max }} + }, + "importMaxFileSize": {{ etherpad_import_max_file_size }}, + "customLocaleStrings": {{ etherpad_custom_locale_strings|to_json }}, + "enableAdminUITests": {{ etherpad_enable_admin_ui_tests }} }