Open rvollgraf opened 3 years ago
I use nginx so this is not a ready to use solution but I think you need to set more headers for it to work.
location / {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
Also I added
SHARELATEX_BEHIND_PROXY=true
in config/variables.env
.
I have exactly same problem. Any update on this?
Its maybe a bit late but i think i managed to solve the issue. You need to set
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
to
ProxyPass / wss://subdomain.your-domain:your-port/ #Here you have to set subdomain.your-domain:your-port
ProxyPassReverse / wss://subdomain.your-domain:your-port/ #Here you have to set subdomain.your-domain:your-port
At least thats what i did and now i get the expected behaviour.
I use nginx so this is not a ready to use solution but I think you need to set more headers for it to work.
location / { proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_read_timeout 3m; proxy_send_timeout 3m; }
Also I added
SHARELATEX_BEHIND_PROXY=true
in
config/variables.env
.
I use frp
and nginx proxy
, it really works for me! Thank you!!
Hi, I used apache reverse proxy and had problems with opensocket.io Does nginx have the same problems or does it work fine?
Steps to Reproduce
Expected Behaviour
Project should load without interruptions or significant delay, when using the reverse proxy.
Observed Behaviour
Loading any project hangs for about 20s showing
Then, all of a sudden, that the project continues loading normally and everything seems to work fine. Via 127.0.0.1:8080 directly, the project loads immediately not having any delays.
Technical Info
The virtual host config file looks like this:
Analysis
The delay happens between loading
and
Apart from that, the DOM loading cascade shows no abnormalities (no other return codes than 200 and 206)