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:
parent
a68dc4f68f
commit
90650b691a
@ -4,6 +4,7 @@ Note: Breaking changes between versions are indicated by "💥".
|
|||||||
|
|
||||||
## Latest
|
## Latest
|
||||||
|
|
||||||
|
- [Improvement] Rename ``SECRET_KEY`` configuration parameter to ``OPENEDX_SECRET_KEY``
|
||||||
- [Improvement] Add support for TLS in external SMTP server (#231)
|
- [Improvement] Add support for TLS in external SMTP server (#231)
|
||||||
- [Bugfix] Fix missing video transcripts in LMS (#229)
|
- [Bugfix] Fix missing video transcripts in LMS (#229)
|
||||||
- [Improvement] Make it possible to enable/disable multiple plugins at once
|
- [Improvement] Make it possible to enable/disable multiple plugins at once
|
||||||
|
@ -93,7 +93,7 @@ def load_required(config, defaults):
|
|||||||
that are generated once and must be kept after that, such as passwords.
|
that are generated once and must be kept after that, such as passwords.
|
||||||
"""
|
"""
|
||||||
for key in [
|
for key in [
|
||||||
"SECRET_KEY",
|
"OPENEDX_SECRET_KEY",
|
||||||
"MYSQL_ROOT_PASSWORD",
|
"MYSQL_ROOT_PASSWORD",
|
||||||
"OPENEDX_MYSQL_PASSWORD",
|
"OPENEDX_MYSQL_PASSWORD",
|
||||||
"ANDROID_OAUTH2_SECRET",
|
"ANDROID_OAUTH2_SECRET",
|
||||||
@ -145,6 +145,8 @@ def upgrade_obsolete(config):
|
|||||||
if config["ACTIVATE_XQUEUE"]:
|
if config["ACTIVATE_XQUEUE"]:
|
||||||
plugins.enable(config, "xqueue")
|
plugins.enable(config, "xqueue")
|
||||||
config.pop("ACTIVATE_XQUEUE")
|
config.pop("ACTIVATE_XQUEUE")
|
||||||
|
if "SECRET_KEY" in config:
|
||||||
|
config["OPENEDX_SECRET_KEY"] = config.pop("SECRET_KEY")
|
||||||
|
|
||||||
|
|
||||||
def convert_json2yml(root):
|
def convert_json2yml(root):
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"SECRET_KEY": "{{ SECRET_KEY }}",
|
"SECRET_KEY": "{{ OPENEDX_SECRET_KEY }}",
|
||||||
"AWS_ACCESS_KEY_ID": "{{ OPENEDX_AWS_ACCESS_KEY }}",
|
"AWS_ACCESS_KEY_ID": "{{ OPENEDX_AWS_ACCESS_KEY }}",
|
||||||
"AWS_SECRET_ACCESS_KEY": "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}",
|
"AWS_SECRET_ACCESS_KEY": "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}",
|
||||||
{{ patch("openedx-auth", separator=",\n", suffix=",")|indent(2) }}
|
{{ patch("openedx-auth", separator=",\n", suffix=",")|indent(2) }}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
# These configuration values must be stored in the user's config.yml.
|
# These configuration values must be stored in the user's config.yml.
|
||||||
SECRET_KEY: "{{ 24|random_string }}"
|
|
||||||
MYSQL_ROOT_PASSWORD: "{{ 8|random_string }}"
|
MYSQL_ROOT_PASSWORD: "{{ 8|random_string }}"
|
||||||
OPENEDX_MYSQL_PASSWORD: "{{ 8|random_string }}"
|
OPENEDX_MYSQL_PASSWORD: "{{ 8|random_string }}"
|
||||||
|
OPENEDX_SECRET_KEY: "{{ 24|random_string }}"
|
||||||
ANDROID_OAUTH2_SECRET: "{{ 24|random_string }}"
|
ANDROID_OAUTH2_SECRET: "{{ 24|random_string }}"
|
||||||
ID: "{{ 24|random_string }}"
|
ID: "{{ 24|random_string }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user