mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 20:39:40 +01:00
Solved location bug
This commit is contained in:
parent
916cb6e314
commit
9762645b6d
@ -1,9 +1,9 @@
|
|||||||
# The following directives enforce OAuth2 authentication:
|
{# The following directives enforce OAuth2 authentication: #}
|
||||||
|
|
||||||
auth_request /oauth2/auth;
|
auth_request /oauth2/auth;
|
||||||
# This directive issues an internal sub-request to '/oauth2/auth' for every incoming request.
|
{# This directive issues an internal sub-request to '/oauth2/auth' for every incoming request. #}
|
||||||
# The sub-request checks if the client is authenticated.
|
{# The sub-request checks if the client is authenticated. #}
|
||||||
|
|
||||||
error_page 401 = /oauth2/start;
|
error_page 401 = /oauth2/start;
|
||||||
# If the authentication check fails (i.e., a 401 Unauthorized is returned),
|
{# If the authentication check fails (i.e., a 401 Unauthorized is returned), #}
|
||||||
# this directive redirects the client to '/oauth2/start', which typically initiates the OAuth2 login process.
|
{# this directive redirects the client to '/oauth2/start', which typically initiates the OAuth2 login process. #}
|
@ -4,7 +4,7 @@ location {{location | default("/")}}
|
|||||||
{% include 'roles/docker-oauth2-proxy/templates/following_directives.conf.j2'%}
|
{% include 'roles/docker-oauth2-proxy/templates/following_directives.conf.j2'%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:{{http_port}}/;
|
proxy_pass http://127.0.0.1:{{http_port}}{{location | default("/")}};
|
||||||
|
|
||||||
# headers
|
# headers
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user