From a2f2ffb737978795125211371b53f15c01bb682f Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 2 Oct 2024 18:47:58 +0200 Subject: [PATCH] docs(nginx): pass host as received from client (#8690) # Which Problems Are Solved The Host header reaching ZITADEL must be the same like it is requested by the browser, or all sorts of issues arise. However, in the NginX docs, it is appended by the port. # How the Problems Are Solved Port is removed from examples # Additional Context - Closes https://github.com/zitadel/zitadel/issues/7804 - Relates to https://github.com/netbirdio/netbird/issues/1395 --- .../manage/reverseproxy/nginx/nginx-disabled-tls.conf | 2 +- .../manage/reverseproxy/nginx/nginx-enabled-tls.conf | 2 +- .../manage/reverseproxy/nginx/nginx-external-tls.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-disabled-tls.conf b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-disabled-tls.conf index 1ea55b990..613d97ca6 100644 --- a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-disabled-tls.conf +++ b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-disabled-tls.conf @@ -7,7 +7,7 @@ http { http2 on; location / { grpc_pass grpc://zitadel-disabled-tls:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } } diff --git a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-enabled-tls.conf b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-enabled-tls.conf index 00e83f74a..397f1db72 100644 --- a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-enabled-tls.conf +++ b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-enabled-tls.conf @@ -9,7 +9,7 @@ http { ssl_certificate_key /etc/certs/selfsigned.key; location / { grpc_pass grpcs://zitadel-enabled-tls:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } } diff --git a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-external-tls.conf b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-external-tls.conf index c2f34062c..4c1eddb66 100644 --- a/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-external-tls.conf +++ b/docs/docs/self-hosting/manage/reverseproxy/nginx/nginx-external-tls.conf @@ -9,7 +9,7 @@ http { ssl_certificate_key /etc/certs/selfsigned.key; location / { grpc_pass grpc://zitadel-external-tls:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } }