Closed fniko closed 3 years ago
@fniko couldn't the following settings help you? https://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx
@vania-pooh Hello! Thanks for quick response. I have updated location configuration to include suggested options and it works! Thanks and closing! :)
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_buffering off;
proxy_cache off;
proxy_connect_timeout 600;
proxy_send_timeout 300;
proxy_read_timeout 300;
}
I just discovered that VNC and LOGS stopped working. Gonna reopen this issue until fixed.
@fniko the issue is here:
proxy_set_header Connection '';
Should be:
proxy_set_header Connection "upgrade";
You are right! Fixed the issue :) Thanks and closing again.
Hello, I like Selenoid and Selenoid-ui, so I wanted to use it behind domain name and with HTTPS (TLS) support. I am able to see dashboard and run tests, however SSE status is Unknown so no new tests are displayed without page refresh.
Is there any guide or fix of this issue?
Configuration below: We orchestrate docker containers with selenoid and selenoid-ui over docker-compose docker-compose.yml
Nginx configuration Please note, we wanted to access Selenoid over regular port 4444, so thats why it's locally mapped to 4445 and "forwarded" un the nginx config.
EDIT: No erros in browsers Console nor Network tab - tested in Chrome / Firefox / Safari. EDIT2: During refresh I have discovered error - it is shown only for few miliseconds during page refresh. I am investigating this error now.
EDIT3: Okay, I definitely think the issue is in
/events
. This URL is not available through NGINX, however from host VM, I am receiving updates after callingcurl 127.0.0.1:8080/events
.EDIT4: After some time (like 3 - 5 minutes), SSE turned green until refresh. I belive it's connected to the following request: