From 67005b5c3398a9a5f4deb0df9fbd0467ace3a0a7 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 19 May 2025 18:31:41 +0200 Subject: [PATCH] bundles/paperless: add CSRF_TRUSTED_ORIGINS --- bundles/paperless-ng/files/paperless.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/paperless-ng/files/paperless.conf b/bundles/paperless-ng/files/paperless.conf index d943063..84f1b65 100644 --- a/bundles/paperless-ng/files/paperless.conf +++ b/bundles/paperless-ng/files/paperless.conf @@ -17,6 +17,7 @@ PAPERLESS_FILENAME_FORMAT={{ created_year }}/{{ created_month }}/{{ corresponden # Security and hosting PAPERLESS_SECRET_KEY=${repo.vault.random_bytes_as_base64_for(f'{node.name} paperless secret key')} +PAPERLESS_CSRF_TRUSTED_ORIGINS=https://${node.metadata.get('paperless/domain')} PAPERLESS_ALLOWED_HOSTS=${node.metadata.get('paperless/domain')} PAPERLESS_CORS_ALLOWED_HOSTS=http://${node.metadata.get('paperless/domain')},https://${node.metadata.get('paperless/domain')} #PAPERLESS_FORCE_SCRIPT_NAME=