Skip to content

Prefect UI behind nginx reverse proxy can't connect to GraphQL endpoint #3604

Answered by fpun
fpun asked this question in Q&A
Discussion options

You must be logged in to vote

If that's helpful to anyone, it seems like the issue was related to having SSL on the UI but not on the graphql endpoint. I eventually managed to make it work by applying SSL to the graphql endpoint as well. I used the same certificate as for the main domain with another unused port (in my case 4800) in nginx config, and routed traffic from this port to localhost:4200. Finally I updated config.toml to link the apollo_url to the https endpoint.

nginx config:

server {
    listen 80;

    server_name ***my_domain***;

    location / {
        proxy_pass http://localhost:8080;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/***my_domain***/fullchain.p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fpun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant