Skip to content

Commit

Permalink
Add more hostname config
Browse files Browse the repository at this point in the history
Should have been part of d42bd66
  • Loading branch information
arnested committed Dec 13, 2024
1 parent 2846018 commit 7af958b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions context/nextjs/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions context/storybook/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7af958b

Please sign in to comment.