Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added csrf_trusted_origins with defa #3971

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/paperless-ngx/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
PAPERLESS_URL: ${APP_PROTOCOL:-http}://${APP_DOMAIN}
COMPOSE_PROJECT_NAME: paperless-ngx
PAPERLESS_CSRF_TRUSTED_ORIGINS: `https:\\paperless-ngx.${LOCAL_DOMAIN}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix syntax error in PAPERLESS_CSRF_TRUSTED_ORIGINS environment variable.

The use of backticks is causing a syntax error. Replace backticks with double quotes.

-      PAPERLESS_CSRF_TRUSTED_ORIGINS: `https:\\paperless-ngx.${LOCAL_DOMAIN}`
+      PAPERLESS_CSRF_TRUSTED_ORIGINS: "https://paperless-ngx.${LOCAL_DOMAIN}"
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
PAPERLESS_CSRF_TRUSTED_ORIGINS: `https:\\paperless-ngx.${LOCAL_DOMAIN}`
PAPERLESS_CSRF_TRUSTED_ORIGINS: "https://paperless-ngx.${LOCAL_DOMAIN}"
Tools
yamllint

[error] 27-27: syntax error: found character '`' that cannot start any token

(syntax)

networks:
- tipi_main_network
labels:
Expand Down