openworm / org.geppetto.frontend.jupyter

Geppetto Jupyter Notebook Extension
http://geppetto.org
Other
5 stars 4 forks source link

Connexion closed by reverse proxy not reconnecting #101

Open rodriguez-facundo opened 4 years ago

rodriguez-facundo commented 4 years ago

Steps to reproduce:

  1. ping host.docker.internal from a local running container (should give you something like 192.168.65.2)
  2. Run a nginx docker container as reverse proxy to a geppetto application
# dockerfile
FROM nginx:1.17-alpine
COPY default.conf /etc/nginx/conf.d
# default.conf
server {
    listen 8999;
    server_name localhost;

    location / {
        proxy_pass          http://192.168.65.2:8081/;

        proxy_http_version  1.1;
        proxy_set_header    Upgrade $http_upgrade;
        proxy_set_header    Connection "Upgrade";
        proxy_set_header    Host $host;
        proxy_set_header    Origin "";
        proxy_connect_timeout 30;
        proxy_send_timeout 30;
        proxy_read_timeout 30;
        send_timeout 30;
    }
}
  1. Start geppetto application and go to localhost:8999
  2. Wait 30 seconds for the ws connexion to be closed by nginx