2020-12-24 14:27:31 +01:00
|
|
|
server
|
|
|
|
{
|
|
|
|
server_name {{domain}};
|
|
|
|
|
2025-01-26 13:25:39 +01:00
|
|
|
# Include OAuth2 Proxy
|
|
|
|
{% if oauth2_proxy_active | bool %}
|
|
|
|
# OAuth2-Proxy-Endpunkte
|
|
|
|
location /oauth2/ {
|
|
|
|
proxy_pass http://127.0.0.1:{{oauth2_proxy_port}};
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
|
2023-12-07 18:54:47 +01:00
|
|
|
# Include Matomo Tracking Code
|
2024-01-03 12:07:19 +01:00
|
|
|
{% if nginx_matomo_tracking | bool %}
|
2023-11-18 20:02:55 +01:00
|
|
|
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2023-12-07 18:54:47 +01:00
|
|
|
# Additional Domain Specific Configuration
|
|
|
|
{% if nginx_docker_reverse_proxy_extra_configuration is defined %}
|
|
|
|
{{nginx_docker_reverse_proxy_extra_configuration}}
|
2020-12-24 14:27:31 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2023-09-02 13:13:28 +02:00
|
|
|
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
2020-12-24 14:27:31 +01:00
|
|
|
|
|
|
|
{% include 'proxy_pass.conf.j2' %}
|
|
|
|
|
|
|
|
}
|