Set X-Forwarded-Host

This commit is contained in:
Aaron Dewes 2023-05-20 17:43:25 +02:00 committed by GitHub
parent 0667939e00
commit 2e2da325ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,9 @@
{% if entry.is_primary %}
{{domain}} {
{% set container_ip_entry = "APP_" ~ app_id ~ "-" ~ entry.container_name ~ "_IP" | upper | replace(from="-", to="_") %}
reverse_proxy {{ ip_map[container_ip_entry] }}:{{ entry.internal_port }}
reverse_proxy {{ ip_map[container_ip_entry] }}:{{ entry.internal_port }} {
header_up X-Forwarded-Host "{{ domain }}"
}
{% if https_options.user and https_options.user.username and https_options.user.password and domain is ending_with(".runningcitadel.com") %}
tls {
dns runningcitadel {{ https_options.user.username }} {{ https_options.user.password }}