-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.env.py
48 lines (41 loc) · 1.62 KB
/
config.env.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os
# Flask config
DEBUG = False
IP = os.environ.get("IP", "0.0.0.0")
PORT = os.environ.get("PORT", "8080")
SERVER_NAME = os.environ.get("SERVER_NAME", "localhost:8080")
SECRET_KEY = os.environ.get("SECRET_KEY", "[secret]")
# LDAP config
LDAP_BIND_DN = os.environ.get(
"LDAP_BIND_DN", "krbprincipalname=null,cn=services,cn=accounts,dc=csh,dc=rit,dc=edu"
)
LDAP_BIND_PW = os.environ.get("LDAP_BIND_PW", "")
# Sentry config
# Do not set the DSN for local development
SENTRY_DSN = os.environ.get("SENTRY_DSN", "")
# OpenID Connect SSO config
OIDC_ISSUER = os.environ.get("OIDC_ISSUER", "https://sso.csh.rit.edu/auth/realms/csh")
OIDC_CLIENT_CONFIG = {
"client_id": os.environ.get("OIDC_CLIENT_ID", "selfservice"),
"client_secret": os.environ.get("OIDC_CLIENT_SECRET", ""),
"post_logout_redirect_uris": [
os.environ.get("OIDC_LOGOUT_REDIRECT_URI", "https://account.csh.rit.edu/logout")
],
}
KC_ADMIN_USER = os.environ.get("KC_ADMIN_USER", "selfservice")
KC_ADMIN_PW = os.environ.get("KC_ADMIN_PW", "")
SQLALCHEMY_DATABASE_URI = os.environ.get(
"DATABASE_URI",
"postgresql://selfservice:supersecretpassword@localhost:5433/selfservice"
)
SQLALCHEMY_TRACK_MODIFICATIONS = False
RECAPTCHA_ENABLED = True
RECAPTCHA_SITE_KEY = os.environ.get("RECAPTCHA_SITE_KEY", "")
RECAPTCHA_SECRET_KEY = os.environ.get("RECAPTCHA_SECRET_KEY", "")
RECAPTCHA_THEME = "light"
RECAPTCHA_TYPE = "image"
RECAPTCHA_SIZE = "normal"
TWILIO_SID = os.environ.get("TWILIO_SID", "")
TWILIO_TOKEN = os.environ.get("TWILIO_TOKEN", "")
TWILIO_NUMBER = os.environ.get("TWILIO_NUMBER", "")
TWILIO_SERVICE_SID = os.environ.get("TWILIO_SERVICE_SID", "")