From d8a834f364b9d4fe8fe19a5cda64e3e0e4b51156 Mon Sep 17 00:00:00 2001 From: Stefan Benz <46600784+stebenz@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:38:17 +0100 Subject: [PATCH] docs(nginx): change example for webauthn (#4382) Co-authored-by: Florian Forster --- .../manage/self-hosted/proxy/_nginx.mdx | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/docs/docs/guides/manage/self-hosted/proxy/_nginx.mdx b/docs/docs/guides/manage/self-hosted/proxy/_nginx.mdx index d611401cd..57c047698 100644 --- a/docs/docs/guides/manage/self-hosted/proxy/_nginx.mdx +++ b/docs/docs/guides/manage/self-hosted/proxy/_nginx.mdx @@ -15,12 +15,22 @@ http { location / { grpc_pass grpc://localhost:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } } ``` +:::info +If another port than the default HTTPS port 443 is used replace + +` grpc_set_header Host $host;` + +with + +` grpc_set_header Host $host:$server_port;` +::: + ## TLS mode enabled ```bash @@ -38,12 +48,22 @@ http { location / { grpc_pass grpcs://localhost:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } } ``` +:::info +If another port than the default HTTPS port 443 is used replace + +` grpc_set_header Host $host;` + +with + +` grpc_set_header Host $host:$server_port;` +::: + ## TLS mode disabled ```bash @@ -58,8 +78,18 @@ http { location / { grpc_pass grpc://localhost:8080; - grpc_set_header Host $host:$server_port; + grpc_set_header Host $host; } } } ``` + +:::info +If another port than the default HTTP port 80 is used replace + +` grpc_set_header Host $host;` + +with + +` grpc_set_header Host $host:$server_port;` +:::