Added configuration_filters

This commit is contained in:
2025-02-19 13:46:45 +01:00
parent 7377aa9c20
commit 0c7af2ce89
16 changed files with 59 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ server
{
server_name {{domain}};
{% if applications[application_id].oauth2_proxy.enabled | default(false) | bool %}
{% if applications | get_oauth2_enabled(application_id) %}
{% include 'roles/docker-oauth2-proxy/templates/endpoint.conf.j2'%}
{% endif %}
@@ -15,7 +15,7 @@ server
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
{% if applications[application_id].oauth2_proxy.enabled | default(false) %}
{% if applications | get_oauth2_enabled(application_id) %}
{% if applications[application_id].oauth2_proxy.location is defined %}
{# Exposed and Unprotected Location #}
{% include 'proxy_pass.conf.j2' %}