Commit 59c9826c by George Song Committed by GitHub

Merge pull request #3868 from open-craft/nginx-custom-settings

nginx: Make it possible to add custom settings to site configuration for Studio and LMS.
parents c1d0f2b1 98b3888c
- Role: nginx
- Added `NGINX_EDXAPP_CMS_APP_EXTRA`, which makes it possible to add custom settings to the site configuration for Studio.
- Added `NGINX_EDXAPP_LMS_APP_EXTRA`, which makes it possible to add custom settings to the site configuration for the LMS.
- Role: edxapp - Role: edxapp
- Let `confirm_email` in `EDXAPP_REGISTRATION_EXTRA_FIELDS` default to `"hidden"`. - Let `confirm_email` in `EDXAPP_REGISTRATION_EXTRA_FIELDS` default to `"hidden"`.
- Let `terms_of_service` in `EDXAPP_REGISTRATION_EXTRA_FIELDS` default to `"hidden"`. - Let `terms_of_service` in `EDXAPP_REGISTRATION_EXTRA_FIELDS` default to `"hidden"`.
......
...@@ -153,3 +153,8 @@ NGINX_CREATE_HTPASSWD_FILE: > ...@@ -153,3 +153,8 @@ NGINX_CREATE_HTPASSWD_FILE: >
XQUEUE_ENABLE_BASIC_AUTH|bool or XQUEUE_ENABLE_BASIC_AUTH|bool or
XSERVER_ENABLE_BASIC_AUTH|bool XSERVER_ENABLE_BASIC_AUTH|bool
}} }}
# Extra settings to add to site configuration for Studio
NGINX_EDXAPP_CMS_APP_EXTRA: ""
# Extra settings to add to site configuration for LMS
NGINX_EDXAPP_LMS_APP_EXTRA: ""
...@@ -104,6 +104,8 @@ error_page {{ k }} {{ v }}; ...@@ -104,6 +104,8 @@ error_page {{ k }} {{ v }};
proxy_redirect off; proxy_redirect off;
proxy_pass http://cms-backend; proxy_pass http://cms-backend;
{{ NGINX_EDXAPP_CMS_APP_EXTRA }}
} }
location / { location / {
......
...@@ -149,6 +149,8 @@ error_page {{ k }} {{ v }}; ...@@ -149,6 +149,8 @@ error_page {{ k }} {{ v }};
proxy_redirect off; proxy_redirect off;
proxy_pass http://lms-backend; proxy_pass http://lms-backend;
{{ NGINX_EDXAPP_LMS_APP_EXTRA }}
} }
location / { location / {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment