Skip to content

Commit 27f3daa

Browse files
committed
Cleaning up container errors
1 parent 5c5ce52 commit 27f3daa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ADD requirements.txt /opt/conditional
88
WORKDIR /opt/conditional
99

1010
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 && \
1212
pip install -r requirements.txt && \
1313
apt-get -yq clean all
1414

conditional/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
import random
2+
import string
3+
14
from os import environ as env
25
from conditional import __version__
36

47
# Flask config
58
DEBUG = True if env.get("CONDITIONAL_DEBUG", "false").lower() == "true" else False
69
HOST_NAME = env.get("CONDITIONAL_HOST_NAME", "conditional.csh.rit.edu")
10+
SERVER_NAME = env.get('CONDITIONAL_SERVER_NAME', 'conditional.csh.rit.edu')
711
APP_NAME = "conditional"
812
IP = env.get("CONDITIONAL_IP", "0.0.0.0")
913
PORT = env.get("CONDITIONAL_PORT", 6969)
@@ -31,5 +35,9 @@
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
3543
DUES_PER_SEMESTER = env.get("CONDITIONAL_DUES_PER_SEMESTER", 80)

0 commit comments

Comments
 (0)