Using the official Apache 2 configuration works just fine but using nginx as reverse proxy will lead into a) timeouts b) long loading times c) âWe cannot connectâŚâ messages.
I read in multiple threads that there are issues with nginx as reverse proxy but nobody has posted a solution yet.
I already have a container with NGINX setup so I cannot use a pre-built container. I also am using cloudflare SSL so Lets Encrypt really is not an option for me.
@lachmanfrantisek could you please post the actual NGINX configuration from your âsites-availableâ folder?
After taking a look at the nginx configuration inside of the docker container jwilder/nginx-proxy I found out that the following directive needs to be set in order for some websockets to work properly.
proxy_buffering off;
For everyone interested:
When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the proxied server. The maximum size of the data that nginx can receive from the server at a time is set by the proxy_buffer_size directive.
The following steps will download the Collabora Online docker, make sure to replace âcloud.nextcloud.comâ with the host that your own Nextcloud runs on. Also make sure to escape all dots with double backslashes (\ ), since this string will be evaluated as a regular expression (and your bash âeatsâ the first backslash.) If you want to use the docker container with more than one Nextcloud, youâll need to use domain=cloud\\.nextcloud\\.com\|second\\.nexcloud\\.com instead. (All hosts seperated by \|.)
Are you using the nginx proxy docker image from jwilders? With that I got it running some days before.
Do you have a valid ssl certificate for the domain office.domain.com?
I had to trick with the combination of nginx proxy and letsencrypt companion, that I could make it generate a valid certificate. The problem is, that the collabora docker image does not respond on port 80 requests, which letsencrypt needs to validate the domain.
Can you reach office.domain.com with a valid certificate, or do you get a browser warning?
I suggest enabling dns bypass in CloudFlare and see if it works with DNS resolving directly to your IP. Iâve seen MANY issues with cloudflare sitting in front of complex applications such as NextCloud, Collabora, etc unless it has specific optimizations already put in place to accommodate. I would definitely rule Cloudflare out as the problem before trying anything too drastic.
Thank you, I will work on this over the weekend and report back if this works. I still believe some updates need to be made to the example NGINX reverse-proxy configuration at https://icewind.nl/entry/collabora-online. Updates had to be made to the Apache configuration however i believe this one got forgotten. I am not sure if anyone has gotten this working yet.
Hi, i know this thread was inactive for a while, but can some elaborate how i can get a letsencrypt certificate for my office subdomain? i used the same docker run command as lachmanfrantisek and i get the little OK text when i access it via http. When i try it via https nginx-proxy redirects to the default domainâŚ
I just had the same problem, turns out the copypasta from this forum uses the wrong ENV variable.
Instead of --env 'DOMAIN=sub\\.tld\\.de' \
use --env 'domain=sub\\.tld\\.de' \
Aka: donât use capitals. Then it works fine with jwilder proxy and itâs letsencrypt proxy companion