Skip to content

Commit

Permalink
Merge pull request #24 from reload/storybook-tweaks-2.0
Browse files Browse the repository at this point in the history
Storybook tweaks 2.0
  • Loading branch information
blyme authored Oct 4, 2024
2 parents 384e50a + f6345a9 commit f49f919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ FROM proxy AS storybook
COPY /storybook /

ENV NGINX_PROXY_PASS=http://app:6006
ENV SERVER_CHANNEL_PROXY_PASS=ws://app:6006/storybook-server-channel
7 changes: 5 additions & 2 deletions context/storybook/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ server {

location / {
proxy_pass ${NGINX_PROXY_PASS};
proxy_pass_reverse ${NGINX_PROXY_PASS};
}

location /__webpack-hmr {
Expand All @@ -18,6 +17,10 @@ server {
}

location /storybook-server-channel {
proxy_pass ${SERVER_CHANNEL_PROXY_PASS};
proxy_pass ${NGINX_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}

0 comments on commit f49f919

Please sign in to comment.