choephix / auto-gpt-webui

MIT License
117 stars 39 forks source link

No connection to Websocket [Docker + Nginx Proxy] #10

Open Krishnacore opened 1 year ago

Krishnacore commented 1 year ago

Locally, everything works great (and thank you so much for the work you did, by the way!). But I ran into problems when trying to run it on the server.

I am running the application in the docker + using nginx proxy. It's simple enough and should work. But in the console I see this. And error when adding keys. Screenshot 2023-04-19 at 6 42 08 PM In .env I changed the backend address to wss://mysite.com/ws And the nginx config looks something like this:

location /ws {
    proxy_http_version 1.1;
    proxy_pass http://127.0.0.1:2200;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
  }
}

Do you have any idea what could be wrong? Thanks!