From e709eee28dcab1fe04e6ff71aad518bfdbba569f Mon Sep 17 00:00:00 2001 From: Mikkel Blyme Date: Fri, 4 Oct 2024 13:53:00 +0200 Subject: [PATCH] Storybook tweaks --- Dockerfile | 1 + context/storybook/etc/nginx/templates/default.conf.template | 5 +++++ 2 files changed, 6 insertions(+) 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; + } }