From 7af958b2a2855aaba9168c9cbf35bea7e1e0f71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Fri, 13 Dec 2024 11:56:52 +0100 Subject: [PATCH] Add more hostname config Should have been part of d42bd66bd0f68b8467b0d2444cb1cdc307b6bff0 --- context/nextjs/etc/nginx/templates/default.conf.template | 3 +++ context/storybook/etc/nginx/templates/default.conf.template | 3 +++ 2 files changed, 6 insertions(+) diff --git a/context/nextjs/etc/nginx/templates/default.conf.template b/context/nextjs/etc/nginx/templates/default.conf.template index be521b1..1e5a53b 100644 --- a/context/nextjs/etc/nginx/templates/default.conf.template +++ b/context/nextjs/etc/nginx/templates/default.conf.template @@ -6,6 +6,9 @@ server { location / { proxy_pass ${NGINX_PROXY_PASS}; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /_next/webpack-hmr { diff --git a/context/storybook/etc/nginx/templates/default.conf.template b/context/storybook/etc/nginx/templates/default.conf.template index 7e7ec07..dc7e168 100644 --- a/context/storybook/etc/nginx/templates/default.conf.template +++ b/context/storybook/etc/nginx/templates/default.conf.template @@ -6,6 +6,9 @@ server { location / { proxy_pass ${NGINX_PROXY_PASS}; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /__webpack-hmr {