I had a post on here the other day regarding my NextCloud/Collabora install because I couldn’t get the two of them to talk. After messing around with the conf files, I was able to get that to work by putting the proxy information on the local collabora instance and then it worked fine.
This is still the same case when I’m internal.
When I’m external, if I’m in NextCloud and click on a document, it opens the document to the point that I see the collabora tools and menu, but the document never actually shows.
My environment is setup like this:
Proxy Server
|| ||
NextCloud Collbaora
My proxy server has the following config to direct traffic to collbaora:
<VirtualHost *:443>
ServerName office.domain.net
ProxyPreserveHost On
ProxyPass / https://10.10.2.32:443/ ProxyPassReverse / https://office.domain.net:443/
SSLCertificateFile /etc/letsencrypt/live/autodiscover.domain.net/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/autodiscover.domain.net/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateChainFile /etc/letsencrypt/live/autodiscover.domain.net/chain.pem
<Location /owa>
ProxyPass https://office.domain.net/ ProxyPassReverse https://office.domain.net/ SSLRequireSSL
</Location>
</VirtualHost>
Then the collabora has the following conf file:
ServerName office.domain.net
SSLCertificateFile /etc/apache2/ssl/fullchain3.pem SSLCertificateKeyFile /etc/apache2/ssl/privkey3.pem Include /etc/apache2/ssl/options-ssl-apache.conf
# Encoded slashes need to be allowed AllowEncodedSlashes NoDecode
# Container uses a unique non-signed certificate SSLProxyEngine On SSLProxyVerify None SSLProxyCheckPeerCN Off SSLProxyCheckPeerName Off
# keep the host ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd # loleaflet is the client part of LibreOffice Online ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0 ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
# WOPI discovery URL ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0 ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
# Main websocket ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
# Admin Console websocket ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations ProxyPass /lool https://127.0.0.1:9980/lool ProxyPassReverse /lool https://127.0.0.1:9980/lool
</VirtualHost>
Any thoughts? I tried replacing the loopback with the domain but that just makes it worse.