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
8
8
WORKDIR /opt/conditional
9
9
10
10
RUN 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 && \
12
12
pip install -r requirements.txt && \
13
13
apt-get -yq clean all
14
14
Original file line number Diff line number Diff line change
1
+ import random
2
+ import string
3
+
1
4
from os import environ as env
2
5
from conditional import __version__
3
6
4
7
# Flask config
5
8
DEBUG = True if env .get ("CONDITIONAL_DEBUG" , "false" ).lower () == "true" else False
6
9
HOST_NAME = env .get ("CONDITIONAL_HOST_NAME" , "conditional.csh.rit.edu" )
10
+ SERVER_NAME = env .get ('CONDITIONAL_SERVER_NAME' , 'conditional.csh.rit.edu' )
7
11
APP_NAME = "conditional"
8
12
IP = env .get ("CONDITIONAL_IP" , "0.0.0.0" )
9
13
PORT = env .get ("CONDITIONAL_PORT" , 6969 )
31
35
'post_logout_redirect_uris' : [env .get ("CONDITIONAL_OIDC_CLIENT_LOGOUT" , "http://0.0.0.0:6969/logout" )]
32
36
}
33
37
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
+
34
42
# General config
35
43
DUES_PER_SEMESTER = env .get ("CONDITIONAL_DUES_PER_SEMESTER" , 80 )
You can’t perform that action at this time.
0 commit comments