46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
|
# Bind address of the server
|
||
|
HOST = "127.0.0.1"
|
||
|
PORT = 3000
|
||
|
|
||
|
# Extended log output, but slower
|
||
|
DEBUG = False
|
||
|
|
||
|
# Required to encrypt or sign sessions, cookies, tokens, etc.
|
||
|
SECRET = "!!!<<<CHANGEME>>>!!!"
|
||
|
|
||
|
# Connection to the database
|
||
|
POSTGRES_URL = "postgresql+asyncpg://user:pass@host/dbname"
|
||
|
|
||
|
# URL to the keycloak realm, as reachable by the API service. This is not
|
||
|
# necessarily its publicly reachable URL, keycloak advertises that iself.
|
||
|
KEYCLOAK_URL = "http://localhost:1234/auth/realms/obs/"
|
||
|
|
||
|
# Auth client credentials
|
||
|
KEYCLOAK_CLIENT_ID = "portal"
|
||
|
KEYCLOAK_CLIENT_SECRET = "00000000-0000-0000-0000-000000000000"
|
||
|
|
||
|
# The root of the frontend. Needed for redirecting after login, and for CORS.
|
||
|
MAIN_FRONTEND_URL = "https://portal.example.com/"
|
||
|
|
||
|
# Mail settings
|
||
|
MAIL_ENABLED = False
|
||
|
MAIL_FROM = "Sender Name <sender@example.com>"
|
||
|
MAIL_SMTP_HOST = "mail.example.com"
|
||
|
MAIL_SMTP_PORT = 465
|
||
|
MAIL_STARTTLS = False
|
||
|
MAIL_SMTP_USERNAME = "sender@example.com"
|
||
|
|
||
|
# Urls to important documents, hosted elsewhere
|
||
|
IMPRINT_URL = "https://example.com/imprint"
|
||
|
PRIVACY_POLICY_URL = "https://example.com/privacy"
|
||
|
|
||
|
# Path overrides:
|
||
|
# API_ROOT_DIR = "??" # default: api/ inside repository
|
||
|
# DATA_DIR = "??" # default: $API_ROOT_DIR/..
|
||
|
# PROCESSING_DIR = "??" # default: DATA_DIR/processing
|
||
|
# PROCESSING_OUTPUT_DIR = "??" # default: DATA_DIR/processing-output
|
||
|
# TRACKS_DIR = "??" # default: DATA_DIR/tracks
|
||
|
# OBS_FACE_CACHE_DIR = "??" # default: DATA_DIR/obs-face-cache
|
||
|
|
||
|
# vim: set ft=python :
|