From ef3ccd1a048c5bac333c7f2d621961212c2ad28b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 14 Mar 2020 21:52:48 +0100 Subject: [PATCH] add new options for attachment limits --- defaults/main.yml | 5 ++++- templates/services/compose.yml.j2 | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index fccbba1..564b1c8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,5 @@ --- -bitwardenrs_version: latest +bitwardenrs_version: 1.13 bitwardenrs_service_directory: /var/lib/docker/services/bitwardenrs bitwardenrs_container_name: bitwardenrs @@ -73,6 +73,9 @@ bitwardenrs_show_password_hint: True bitwardenrs_authenticator_disable_time_drift: False +bitwardenrs_user_attachment_limit: 1024 +bitwardenrs_org_attachment_limit: 1024 + # @var bitwardenrs_smtp_host: $ "_unset_" bitwardenrs_smtp_from: "bitwardenrs@localhost" bitwardenrs_smtp_from_name: "Bitwarden RS" diff --git a/templates/services/compose.yml.j2 b/templates/services/compose.yml.j2 index 695c273..067d5d6 100644 --- a/templates/services/compose.yml.j2 +++ b/templates/services/compose.yml.j2 @@ -26,6 +26,8 @@ services: environment: - BITWARDENRS_DOMAIN={{ bitwardenrs_base_url }} - BITWARDENRS_DATABASE_URL=postgresql://{{ bitwardenrs_db_user }}:{{ bitwardenrs_db_password | urlencode }}@{{ bitwardenrs_db_server }}:{{ bitwardenrs_db_port }}/{{ bitwardenrs_db_name }}?sslmode={{ bitwardenrs_db_ssl_mode }}&sslrootcert={{ bitwardenrs_db_ssl_rootcert }} + - BITWARDENRS_USER_ATTACHMENT_LIMIT={{ bitwardenrs_user_attachment_limit }} + - BITWARDENRS_ORG_ATTACHMENT_LIMIT={{ bitwardenrs_org_attachment_limit }} - BITWARDENRS_WEBSOCKET_ENABLED={{ bitwardenrs_websocket_enabled }} {% if bitwardenrs_templates_folder is defined and bitwardenrs_templates_folder %} - BITWARDENRS_TEMPLATES_FOLDER={{ bitwardenrs_templates_folder }}