Skip to content

Commit 7af958b

Browse files
committed
Add more hostname config
Should have been part of d42bd66
1 parent 2846018 commit 7af958b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

context/nextjs/etc/nginx/templates/default.conf.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ server {
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};
9+
proxy_set_header Host $host;
10+
proxy_set_header X-Real-IP $remote_addr;
11+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
912
}
1013

1114
location /_next/webpack-hmr {

context/storybook/etc/nginx/templates/default.conf.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ server {
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};
9+
proxy_set_header Host $host;
10+
proxy_set_header X-Real-IP $remote_addr;
11+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
912
}
1013

1114
location /__webpack-hmr {

0 commit comments

Comments
 (0)