6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Rename SECRET_KEY to OPENEDX_SECRET_KEY

This commit is contained in:
Régis Behmo 2019-07-07 10:02:03 +08:00
parent a68dc4f68f
commit 90650b691a
4 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@ Note: Breaking changes between versions are indicated by "💥".
## Latest
- [Improvement] Rename ``SECRET_KEY`` configuration parameter to ``OPENEDX_SECRET_KEY``
- [Improvement] Add support for TLS in external SMTP server (#231)
- [Bugfix] Fix missing video transcripts in LMS (#229)
- [Improvement] Make it possible to enable/disable multiple plugins at once

View File

@ -93,7 +93,7 @@ def load_required(config, defaults):
that are generated once and must be kept after that, such as passwords.
"""
for key in [
"SECRET_KEY",
"OPENEDX_SECRET_KEY",
"MYSQL_ROOT_PASSWORD",
"OPENEDX_MYSQL_PASSWORD",
"ANDROID_OAUTH2_SECRET",
@ -145,6 +145,8 @@ def upgrade_obsolete(config):
if config["ACTIVATE_XQUEUE"]:
plugins.enable(config, "xqueue")
config.pop("ACTIVATE_XQUEUE")
if "SECRET_KEY" in config:
config["OPENEDX_SECRET_KEY"] = config.pop("SECRET_KEY")
def convert_json2yml(root):

View File

@ -1,5 +1,5 @@
{
"SECRET_KEY": "{{ SECRET_KEY }}",
"SECRET_KEY": "{{ OPENEDX_SECRET_KEY }}",
"AWS_ACCESS_KEY_ID": "{{ OPENEDX_AWS_ACCESS_KEY }}",
"AWS_SECRET_ACCESS_KEY": "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}",
{{ patch("openedx-auth", separator=",\n", suffix=",")|indent(2) }}

View File

@ -1,8 +1,8 @@
---
# These configuration values must be stored in the user's config.yml.
SECRET_KEY: "{{ 24|random_string }}"
MYSQL_ROOT_PASSWORD: "{{ 8|random_string }}"
OPENEDX_MYSQL_PASSWORD: "{{ 8|random_string }}"
OPENEDX_SECRET_KEY: "{{ 24|random_string }}"
ANDROID_OAUTH2_SECRET: "{{ 24|random_string }}"
ID: "{{ 24|random_string }}"