-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
28 lines (23 loc) · 850 Bytes
/
config.py
File metadata and controls
28 lines (23 loc) · 850 Bytes
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
import os
from os import environ
###########################
# Flask config
###########################
DEBUG = True
IP = environ.get('IP', '0.0.0.0')
PORT = int(environ.get('PORT', 8080))
SECRET_KEY = environ.get('SECRET_KEY', '')
SERVER_NAME = environ.get('SERVER_NAME', 'libra.csh.rit.edu')
###########################
# DB info
###########################
SQLALCHEMY_DATABASE_URI = environ.get('SQLALCHEMY_DATABASE_URI', '')
###########################
# OIDC config
###########################
OIDC_ISSUER = os.environ.get('OIDC_ISSUER', 'https://sso.csh.rit.edu/auth/realms/csh')
OIDC_CLIENT_CONFIG = {
'client_id': environ.get('OIDC_CLIENT_ID', 'libra'),
'client_secret': environ.get('OIDC_CLIENT_SECRET', ''),
'post_logout_redirect_uris': [environ.get('LIBRA_OIDC_LOGOUT_REDIRECT_URI', 'https://libra.csh.rit.edu/logout')]
}