mercure icon indicating copy to clipboard operation
mercure copied to clipboard

[Bug]: Development UI not working via proxy

Open alexz707 opened this issue 1 year ago • 0 comments

When accessing the dev UI via a nginx proxy the dev UI will load but won't work because it does not find the app.js file. Maybe this is an intended behaviour but I did not find something in the docs.

I use the docker image and my proxy nginx config is:

   location /hub {
        proxy_pass http://mercure/.well-known/mercure;
        proxy_read_timeout 24h;
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        ## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

When I access the container over an exposed port everything is working. But as soon as I use the proxy path it doesn't find the app.js file.

Bildschirmfoto 2024-09-16 um 10 36 38

Regards Alex

alexz707 avatar Sep 16 '24 08:09 alexz707