Open dagsterbot[bot] opened 3 years ago
likely belongs to https://docs.dagster.io/concepts/dagit/graphql
After putting my dagit container behind an nginx reverse proxy, I noticed that the JS console was flooded with errors:
WebSocket connection to 'wss://server.example.com/graphql' failed: DirectGraphQLSubscription.ts:47
Changing my configuration to the following seems to have alleviated that problem:
location / {
include proxy_params;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_pass http://localhost:3000;
}
Please note that I am an nginx "script-kiddie" and have really no idea what any of these settings do. I simply copied Slack user U01V61RB41M
's configuration from their screenshot. But...it works? I think?
Edit: I would also really appreciate documentation on how to place a Dagit behind a subdirectory:
location /dagit/ {
. . .
proxy_pass http://localhost:3000/;
}
The above does not work.
Hi there, I am also getting a blank page using nginx reverse proxy on dagster version 0.14.17. This is what my /etc/nginx/sites-available/default has:
location /dag {
include proxy_params;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_pass http://localhost:3001;
You need to run dagit with -l /dag
Dagster Documentation Gap
Document sample reverse proxy config for Dagit webserver
This issue was generated from the slack conversation at: https://dagster.slack.com/archives/C01U954MEER/p1619706927188200?thread_ts=1619706927.188200&cid=C01U954MEER
Conversation excerpt:
Message from the maintainers:
Are you looking for the same documentation content? Give it a :thumbsup:. We factor engagement into prioritization.