Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Development UI not working via proxy #951

Open
alexz707 opened this issue Sep 16, 2024 · 2 comments
Open

[Bug]: Development UI not working via proxy #951

alexz707 opened this issue Sep 16, 2024 · 2 comments

Comments

@alexz707
Copy link

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

@filoucrackeur
Copy link

filoucrackeur commented Nov 25, 2024

same problems with bulma.min.css when you are hosting mercure service in private network not connected to internet .

@dunglas is it possible do not use cdn for assets and includes them directely ?

cordialy

@dunglas
Copy link
Owner

dunglas commented Nov 25, 2024

We're working on a revamp of the profiler. We'll bundle the assets for the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants