summaryrefslogtreecommitdiff
path: root/deskutils/py-paperless/files/patch-src-paperless-settings.py
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2019-08-26 13:30:12 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2019-08-26 13:30:12 +0000
commit3cdc571ab8895b19d628cb2765cdabffe33e46ef (patch)
treec0854e17bd813cc45c002834a05f26a61ac9204c /deskutils/py-paperless/files/patch-src-paperless-settings.py
parentUpgrade to 0.0.17 (diff)
Add protocol to CORS headers (fails otherwise), add direct dependency on
databases/py-sqlite3 (was implicit through www/py-django21 before). Bump revision.
Diffstat (limited to 'deskutils/py-paperless/files/patch-src-paperless-settings.py')
-rw-r--r--deskutils/py-paperless/files/patch-src-paperless-settings.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/deskutils/py-paperless/files/patch-src-paperless-settings.py b/deskutils/py-paperless/files/patch-src-paperless-settings.py
new file mode 100644
index 000000000000..77e7965c0933
--- /dev/null
+++ b/deskutils/py-paperless/files/patch-src-paperless-settings.py
@@ -0,0 +1,11 @@
+--- src/paperless/settings.py.orig 2019-01-27 13:48:05 UTC
++++ src/paperless/settings.py
+@@ -104,7 +104,7 @@ MIDDLEWARE = [
+ ]
+
+ # We allow CORS from localhost:8080
+-CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "localhost:8080").split(","))
++CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "http://localhost:8080").split(","))
+
+ # If auth is disabled, we just use our "bypass" authentication middleware
+ if bool(os.getenv("PAPERLESS_DISABLE_LOGIN", "false").lower() in ("yes", "y", "1", "t", "true")):