Add DrugBank credentials

This commit is contained in:
Mark Veidemanis 2024-01-01 18:19:38 +00:00
parent af5f44b89a
commit 0249b66be7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 2 deletions

View File

@ -4,10 +4,10 @@ trues = ("t", "true", "yes", "y", "1")
# URLs # URLs
DOMAIN = getenv("DOMAIN", "example.com") DOMAIN = getenv("DOMAIN", "example.com")
URL = getenv("URL", f"https://{DOMAIN}") URL = getenv("URL", f"https://{DOMAIN}") # noqa: E231
# Access control # Access control
ALLOWED_HOSTS = getenv("ALLOWED_HOSTS", f"127.0.0.1,{DOMAIN}").split(",") ALLOWED_HOSTS = getenv("ALLOWED_HOSTS", f"127.0.0.1,{DOMAIN}").split(",") # noqa: E231
# CSRF # CSRF
CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS", URL).split(",") CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS", URL).split(",")
@ -36,6 +36,9 @@ LAGO_URL = getenv("LAGO_URL", "")
DEBUG = getenv("DEBUG", "false") in trues DEBUG = getenv("DEBUG", "false") in trues
PROFILER = getenv("PROFILER", "false") in trues PROFILER = getenv("PROFILER", "false") in trues
DRUGBANK_USERNAME = getenv("DRUGBANK_USERNAME", "")
DRUGBANK_PASSWORD = getenv("DRUGBANK_PASSWORD", "")
if DEBUG: if DEBUG:
import socket # only if you haven't already imported this import socket # only if you haven't already imported this