diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 73f49a6209..b9d3f58e8f 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -172,17 +172,18 @@ for name, value in ENV_TOKENS.get("CODE_JAIL", {}).items(): COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", []) +############################## SECURE AUTH ITEMS ############### +# Secret things: passwords, access keys, etc. + +with open(ENV_ROOT / CONFIG_PREFIX + "auth.json") as auth_file: + AUTH_TOKENS = json.load(auth_file) + ############### Mixed Related(Secure/Not-Secure) Items ########## # If segment.io key specified, load it and turn on segment IO if the feature flag is set SEGMENT_IO_LMS_KEY = AUTH_TOKENS.get('SEGMENT_IO_LMS_KEY') if SEGMENT_IO_LMS_KEY: MITX_FEATURES['SEGMENT_IO_LMS'] = ENV_TOKENS.get('SEGMENT_IO_LMS', False) -############################## SECURE AUTH ITEMS ############### -# Secret things: passwords, access keys, etc. - -with open(ENV_ROOT / CONFIG_PREFIX + "auth.json") as auth_file: - AUTH_TOKENS = json.load(auth_file) SECRET_KEY = AUTH_TOKENS['SECRET_KEY']