Skip to content

Commit

Permalink
Merge pull request #16 from reload/protocol
Browse files Browse the repository at this point in the history
Fix protocol handling for NextJS
  • Loading branch information
arnested authored Jul 23, 2024
2 parents ba8f96b + f9e05c0 commit cadbc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ FROM proxy AS nextjs

COPY /nextjs /

ENV NGINX_PROXY_PASS app:3000
ENV NGINX_PROXY_PASS http://app:3000
4 changes: 2 additions & 2 deletions context/nextjs/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ server {
root /var/www/web;

location / {
proxy_pass http://${NGINX_PROXY_PASS};
proxy_pass ${NGINX_PROXY_PASS};
}

location /_next/webpack-hmr {
proxy_pass http://${NGINX_PROXY_PASS};
proxy_pass ${NGINX_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
Expand Down

0 comments on commit cadbc4f

Please sign in to comment.