Skip to content

Commit f49f919

Browse files
authored
Merge pull request #24 from reload/storybook-tweaks-2.0
Storybook tweaks 2.0
2 parents 384e50a + f6345a9 commit f49f919

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ FROM proxy AS storybook
5151
COPY /storybook /
5252

5353
ENV NGINX_PROXY_PASS=http://app:6006
54-
ENV SERVER_CHANNEL_PROXY_PASS=ws://app:6006/storybook-server-channel

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ server {
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};
9-
proxy_pass_reverse ${NGINX_PROXY_PASS};
109
}
1110

1211
location /__webpack-hmr {
@@ -18,6 +17,10 @@ server {
1817
}
1918

2019
location /storybook-server-channel {
21-
proxy_pass ${SERVER_CHANNEL_PROXY_PASS};
20+
proxy_pass ${NGINX_PROXY_PASS};
21+
proxy_http_version 1.1;
22+
proxy_set_header Upgrade $http_upgrade;
23+
proxy_set_header Connection "Upgrade";
24+
proxy_set_header Host $host;
2225
}
2326
}

0 commit comments

Comments
 (0)