Refactored OAuth2 Proxy Configuration

This commit is contained in:
2025-02-19 03:58:21 +01:00
parent 74d8dad94c
commit 1d360dfa95
4 changed files with 27 additions and 18 deletions

View File

@@ -1,8 +1,7 @@
location /
{
{% if oauth2_proxy_active | bool %}
auth_request /oauth2/auth;
error_page 401 = /oauth2/start;
{% include 'roles/docker-oauth2-proxy/templates/following_directives.conf.j2'%}
{% endif %}
proxy_pass http://127.0.0.1:{{http_port}}/;