Add DBHOST & DBPORT parameters

Resolves #445
This commit is contained in:
Scott Peshak 2018-12-02 15:20:29 -06:00
parent c5488dcb98
commit d12f0642f2

View File

@ -152,6 +152,10 @@ if os.getenv("PAPERLESS_DBUSER"):
}
if os.getenv("PAPERLESS_DBPASS"):
DATABASES["default"]["PASSWORD"] = os.getenv("PAPERLESS_DBPASS")
if os.getenv("PAPERLESS_DBHOST"):
DATABASES["default"]["HOST"] = os.getenv("PAPERLESS_DBHOST")
if os.getenv("PAPERLESS_DBPORT"):
DATABASES["default"]["PORT"] = os.getenv("PAPERLESS_DBPORT")
# Password validation