-
Notifications
You must be signed in to change notification settings - Fork 23
/
localconfig-sample.env.py
27 lines (22 loc) · 1.06 KB
/
localconfig-sample.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
import os
# Flask config
DEBUG=False
IP=os.environ.get('GALLERY_IP', 'localhost')
PORT=os.environ.get('GALLERY_PORT', '6969')
SERVER_NAME = os.environ.get('GALLERY_SERVER_NAME', 'localhost:6969')
SECRET_KEY = os.environ.get('GALLERY_SECRET_KEY', '')
# LDAP config
LDAP_BIND_DN=os.environ.get('GALLERY_LDAP_BIND_DN', '')
LDAP_BIND_PW=os.environ.get('GALLERY_LDAP_BIND_PW', '')
# 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-dev')
OIDC_CLIENT_SECRET = os.environ.get('GALLERY_OIDC_CLIENT_SECRET', '')
SQLALCHEMY_DATABASE_URI = os.environ.get(
'GALLERY_DATABASE_URI',
'postgresql://DB_USERNAME:[email protected]/gallery-dev')
SQLALCHEMY_TRACK_MODIFICATIONS = False
S3_URI = os.environ.get('GALLERY_S3_URI', 'https://s3.csh.rit.edu')
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','gallery-dev')