sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.76k stars 1.58k forks source link

Lets-Chat behind nginx reverse Proxy #680

Closed menzbua closed 8 years ago

menzbua commented 8 years ago

Hi @all,

did someone installed Lets-Chat behind an nginx reverse Proxy and can share the configuration with me. My problem at the moment is that the official URL is for example https://server.com/letschat/ and then the client tries to connect to https://server.com/login and this connect fails.

Thanks a lot

Regards Manuel

nomeaning777 commented 8 years ago

In my environment, this configuration works correctly.

 location /letschat/ {
   proxy_pass http://192.168.1.100:5000/;
   proxy_redirect /  /letschat/;
   proxy_redirect default;
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "upgrade";
   proxy_set_header Host $host;
 }
menzbua commented 8 years ago

That works. Thanks a lot.

hhaidar commented 8 years ago

thank you @nomeaning777