mirror of
https://github.com/runcitadel/core.git
synced 2024-11-11 16:30:38 +00:00
Set X-Forwarded-Host
This commit is contained in:
parent
0667939e00
commit
2e2da325ad
|
@ -61,7 +61,9 @@
|
||||||
{% if entry.is_primary %}
|
{% if entry.is_primary %}
|
||||||
{{domain}} {
|
{{domain}} {
|
||||||
{% set container_ip_entry = "APP_" ~ app_id ~ "-" ~ entry.container_name ~ "_IP" | upper | replace(from="-", to="_") %}
|
{% 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") %}
|
{% if https_options.user and https_options.user.username and https_options.user.password and domain is ending_with(".runningcitadel.com") %}
|
||||||
tls {
|
tls {
|
||||||
dns runningcitadel {{ https_options.user.username }} {{ https_options.user.password }}
|
dns runningcitadel {{ https_options.user.username }} {{ https_options.user.password }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user