-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.env.py
29 lines (24 loc) · 1.21 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
import os
# Flask config
DEBUG=False
IP=os.environ.get('GALLERY_IP', '0.0.0.0')
PORT=os.environ.get('GALLERY_PORT', '8080')
SERVER_NAME = os.environ.get('GALLERY_SERVER_NAME', 'gallery-py.csh.rit.edu')
SECRET_KEY = os.environ.get('GALLERY_SECRET_KEY', '')
# LDAP config
LDAP_URL=os.environ.get('GALLERY_LDAP_URL', 'ldaps://ldap.csh.rit.edu:636')
LDAP_BIND_DN=os.environ.get('GALLERY_LDAP_BIND_DN', 'cn=gallery,ou=Apps,dc=csh,dc=rit,dc=edu')
LDAP_BIND_PW=os.environ.get('GALLERY_LDAP_BIND_PW', '')
LDAP_USER_OU=os.environ.get('GALLERY_LDAP_USER_OU', 'ou=Users,dc=csh,dc=rit,dc=edu')
# OpenID Connect SSO config
OIDC_ISSUER = os.environ.get('GALLERY_OIDC_ISSUER', 'https://sso.csh.rit.edu/auth/realms/csh')
OIDC_CLIENT_ID = os.environ.get('GALLERY_OIDC_CLIENT_ID', 'gallery')
OIDC_CLIENT_SECRET = os.environ.get('GALLERY_OIDC_CLIENT_SECRET', '')
SQLALCHEMY_DATABASE_URI = os.environ.get(
'GALLERY_DATABASE_URI',
'sqlite:///{}'.format(os.path.join(os.getcwd(), 'data.db')))
SQLALCHEMY_TRACK_MODIFICATIONS = False
S3_URI = os.environ.get('GALLERY_S3_URI', '')
S3_ACCESS_ID = os.environ.get('GALLERY_S3_ACCESS_ID','')
S3_SECRET_KEY = os.environ.get('GALLERY_S3_SECRET_KEY','')
S3_BUCKET_ID = os.environ.get('GALLERY_S3_BUCKET_ID','')