Skip to content

Commit 7f3bd5b

Browse files
authored
Merge pull request #22 from reload/storybook-tweaks
Storybook tweaks
2 parents b506833 + 591ed22 commit 7f3bd5b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ server {
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};
9+
proxy_pass_reverse ${NGINX_PROXY_PASS};
910
}
1011

1112
location /__webpack-hmr {
@@ -15,4 +16,8 @@ server {
1516
proxy_set_header Connection "Upgrade";
1617
proxy_set_header Host $host;
1718
}
19+
20+
location /storybook-server-channel {
21+
proxy_pass ${SERVER_CHANNEL_PROXY_PASS};
22+
}
1823
}

0 commit comments

Comments
 (0)