File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ADD requirements.txt /opt/conditional
88WORKDIR /opt/conditional
99
1010RUN apt-get -yq update && \
11- apt-get -yq install libsasl2-dev python-dev libldap2-dev libssl-dev && \
11+ apt-get -yq install libsasl2-dev libldap2-dev libssl-dev && \
1212 pip install -r requirements.txt && \
1313 apt-get -yq clean all
1414
Original file line number Diff line number Diff line change 1+ import random
2+ import string
3+
14from os import environ as env
25from conditional import __version__
36
47# Flask config
58DEBUG = True if env .get ("CONDITIONAL_DEBUG" , "false" ).lower () == "true" else False
69HOST_NAME = env .get ("CONDITIONAL_HOST_NAME" , "conditional.csh.rit.edu" )
10+ SERVER_NAME = env .get ('CONDITIONAL_SERVER_NAME' , 'conditional.csh.rit.edu' )
711APP_NAME = "conditional"
812IP = env .get ("CONDITIONAL_IP" , "0.0.0.0" )
913PORT = env .get ("CONDITIONAL_PORT" , 6969 )
3135 'post_logout_redirect_uris' : [env .get ("CONDITIONAL_OIDC_CLIENT_LOGOUT" , "http://0.0.0.0:6969/logout" )]
3236}
3337
38+ # Openshift secret
39+ SECRET_KEY = env .get ("CONDITIONAL_SECRET_KEY" , default = '' .join (
40+ random .SystemRandom ().choice (string .ascii_uppercase + string .digits ) for _ in range (64 )))
41+
3442# General config
3543DUES_PER_SEMESTER = env .get ("CONDITIONAL_DUES_PER_SEMESTER" , 80 )
You can’t perform that action at this time.
0 commit comments