Commit 43d85953 by Joel Barciauskas

Copy pattern for delegating auth to the api, skipping basic auth, from the LMS to CMS

parent 69662bea
...@@ -125,6 +125,13 @@ error_page {{ k }} {{ v }}; ...@@ -125,6 +125,13 @@ error_page {{ k }} {{ v }};
try_files $uri @proxy_to_cms_app; try_files $uri @proxy_to_cms_app;
} }
# The api is accessed using OAUTH2 which
# uses the authorization header so we can't have
# basic auth on it as well.
location /api {
try_files $uri @proxy_to_cms_app;
}
{% include "robots.j2" %} {% include "robots.j2" %}
{% include "static-files.j2" %} {% include "static-files.j2" %}
......
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