From 2c0036316304cc15a91f526ab90aa683468633dd Mon Sep 17 00:00:00 2001 From: a-stein Date: Tue, 2 Dec 2025 12:07:14 +0100 Subject: [PATCH] Fix CSRF Login issues, adjust PAPERLESS_URL environment variable reference `PAPERLESS_URL` has to be without port reference to avoid Django CSRF issues when logging in. Otherwise the trusted origin in Django will be set to the url with port --- templates/compose/paperless.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/paperless.yaml b/templates/compose/paperless.yaml index beb7d221d..e4a7ca05b 100644 --- a/templates/compose/paperless.yaml +++ b/templates/compose/paperless.yaml @@ -37,7 +37,7 @@ services: is_directory: true environment: - SERVICE_URL_PAPERLESS_8000 - - PAPERLESS_URL=$SERVICE_URL_PAPERLESS_8000 + - PAPERLESS_URL=$SERVICE_URL_PAPERLESS - PAPERLESS_ADMIN_PASSWORD=${SERVICE_PASSWORD_PAPERLESS} - PAPERLESS_ADMIN_USER=${SERVICE_USER_PAPERLESS} - PAPERLESS_REDIS=redis://redis:6379