I spend a lot of trying trying to find the solution by myself but I can’t find …
I have a Indico server running behind another server which is a nginx reverse proxy. The reverse proxy manage SSL, and communicates with other servers by HTTP and I wan’t to do the same with indico. When I deactivate SSL it’s OK (so USER<->HTTP<->REVERSE<-> HTTP <-> INDICO), but when I activate SSL on proxy, I got a lot of errors (so USER<->HTTPS<->REVERSE<-> HTTP <-> INDICO) :
I did, nothing looks strange, it’s the “normal” file. What is strange is that it’s not a “mixed content” error or anything like that which could be easy to understand as it’s a classic error mixing http and https, no, it’s a JS error like a script is not running and objects that are created in doesn’t exist :s
As I wanted to demonstrate Indico to other people, I let this instance in HTTP and I created another one in order to try to solve this https issue : https://indicodev.labsud.org
I made some tests : some js scripts seems to be accessible and others not. I simply took direct link and try a GET. I got “protocol error” and some files are truncated :
UPDATE : it’s really strange, when I try to GET a script directly, sometimes it works, sometimes it fails (the file is cut after ~16000 char, size issue ?)
But since you mentioned the size, please check your nginx logs if there are any errors related to buffering data. With the correct aliases (make sure you use the one from https://docs.getindico.io/en/stable/ and not https://docs.getindico.io/en/latest/) nginx serves the data directly, buf if the aliases are wrong/missing, then the data would go through the Indico Python app and uwsgi, and nginx may need to buffer the data.
I checked : no error on Nginx reverse proxy, and no error on Indico Apache :s
Something more : behind this reverse proxy I have several servers that work well (nextcloud, Dolibarr, RocketChat, Wekan …), Indico is the only one giving this errors.
When I switched from Apache to Nginx, I got some error about file permissions (maybe I forgot a step ?) that I solved like a pig with chmod 777. Maybe Nginx is more explicit than Apache ? I don’t know … I will make a clean install and tell you if I find something.
But before switching I tried everything : adding buffer on reverse proxy, add all options possible … I changed nothing. Sometimes files were complete, sometimes they were cut.
Sorry to revive this old topic, but I was facing the same issue with our nginx reverse proxy. All I had to do to fix this issue was to put “ssi off;” in the nginx virtual server config.
Would you please explain that a bit more? I have a situation where I have a reverse proxy in front of my nginx Indico deployment. getting an error “…redirected you too many times” error
Sorry for this but I am in the same situation with an Nginx proxy in front … the web admin is telling me to disable ssl but when I do that indico stops working. I am running v3.1.
I have been fighting with this the past two days, I welcome any suggestion.
Thank you,
Do you have a link to your instance? Without seeing what exactly is happening (errors, http error codes, etc.) we can just make wild guesses… (and tbh I’d open a new thread, most likely it’s a completely different problem).
Disabling SSL is certainly not an option unless SSL is terminated at an earlier stage (in that case set USE_PROXY = True in indico.conf and make sure that the X-Forwarded-Proto header is set to https).
Thank you for the response. to answer your question, yes, the proxy server provides SSL. What I need is to make sure indico works without SSL enabled. I tried your suggestion of USE_PROXY but even indico refused to restart with this option.
I’m happy to report that I was able to make indico work with http with USE_PROXY = True and the reverse proxy providing SSL.
Thank you for the support!!