]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix appends to ALLOWED_HOSTS should be string instead of list 3218/head
authorWill Ho <will.ho@grabtaxi.com>
Thu, 27 Apr 2023 19:28:19 +0000 (03:28 +0800)
committerWill Ho <will.ho@grabtaxi.com>
Thu, 27 Apr 2023 19:28:19 +0000 (03:28 +0800)
src/paperless/settings.py

index ce498ec58aa63ced56f34d8c8d2ce9784404dd00..122806516cad7e2d732ba8e1236ab302fb3a694d 100644 (file)
@@ -425,7 +425,7 @@ if _paperless_url:
 
 if ["*"] != ALLOWED_HOSTS:
     # always allow localhost. Necessary e.g. for healthcheck in docker.
-    ALLOWED_HOSTS.append(["localhost"])
+    ALLOWED_HOSTS.append("localhost")
     if _paperless_url:
         ALLOWED_HOSTS.append(_paperless_uri.hostname)