diff --git a/Dockerfile b/Dockerfile index 0d82bb8..d24f492 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,3 +51,4 @@ FROM proxy AS storybook COPY /storybook / ENV NGINX_PROXY_PASS http://app:6006 +ENV SERVER_CHANNEL_PROXY_PASS ws://app:6006/storybook-server-channel diff --git a/context/storybook/etc/nginx/templates/default.conf.template b/context/storybook/etc/nginx/templates/default.conf.template index 25b5609..2a42acb 100644 --- a/context/storybook/etc/nginx/templates/default.conf.template +++ b/context/storybook/etc/nginx/templates/default.conf.template @@ -6,6 +6,7 @@ server { location / { proxy_pass ${NGINX_PROXY_PASS}; + proxy_pass_reverse ${NGINX_PROXY_PASS}; } location /__webpack-hmr { @@ -15,4 +16,8 @@ server { proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } + + location /storybook-server-channel { + proxy_pass ${NGINX_PROXY_PASS}/storybook-server-channel; + } }