implemented functioning oauth2-proxy

This commit is contained in:
2025-01-26 15:15:23 +01:00
parent 7b9959af21
commit c35eb10343
7 changed files with 66 additions and 20 deletions

View File

@@ -2,9 +2,16 @@ server
{
server_name {{domain}};
# Include OAuth2 Proxy
{% if oauth2_proxy_active | bool %}
# OAuth2-Proxy-Endpunkte
# Include OAuth2 Proxy
# Raise the maximal header size.
# Keycloak uses huge headers for authentification
proxy_buffer_size 16k;
proxy_buffers 8 16k;
proxy_busy_buffers_size 16k;
large_client_header_buffers 4 16k;
# OAuth2-Proxy-Endpoint
location /oauth2/ {
proxy_pass http://127.0.0.1:{{oauth2_proxy_port}};
proxy_set_header Host $host;
@@ -14,13 +21,13 @@ server
}
{% endif %}
# Include Matomo Tracking Code
{% if nginx_matomo_tracking | bool %}
# Include Matomo Tracking Code
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
{% endif %}
# Additional Domain Specific Configuration
{% if nginx_docker_reverse_proxy_extra_configuration is defined %}
# Additional Domain Specific Configuration
{{nginx_docker_reverse_proxy_extra_configuration}}
{% endif %}