diff --git a/Dockerfile b/Dockerfile index e6fa44f..5fefa13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/context/storybook/etc/nginx/templates/default.conf.template b/context/storybook/etc/nginx/templates/default.conf.template index 27d09f1..d8c675a 100644 --- a/context/storybook/etc/nginx/templates/default.conf.template +++ b/context/storybook/etc/nginx/templates/default.conf.template @@ -6,7 +6,6 @@ server { location / { proxy_pass ${NGINX_PROXY_PASS}; - proxy_pass_reverse ${NGINX_PROXY_PASS}; } location /__webpack-hmr { @@ -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; } }