Collabora Online Port Redirect

Hello nextcloudies alltogether,

in the collabora online app i have to configure the lool / code server with the syntax <ip/fqdn>:9980.

Because most of proxies will restrict outgoing traffic to ports 80 and 443 for example. Now, how can set the lool / code port to another then 9980 and let the reverse proxy at the server side config making the proper redirection? Is this possible?

I think it must be configured in the code app or nextcloud config because if i try to redirect to another port then 9980 i receive a curl error in my nextcloud log.

After a lot of work …

This works perfectly if i use https for my LOOL Apache Subdomain in conjunction with a well-configured apache proxy config.

After installing Collabora and fighting with it I recommend you to secure your setup adding this lines in your apache virtualhost (office.yourNCinstance.com):

<Location /hosting/discovery>
Order deny,allow
Deny from all
    Allow from YOUR_IP (your nextcloud instance)
   <Location /hosting/capabilities>
Order deny,allow
Deny from all
    Allow from YOUR_IP (your nextcloud instance)
      <Location /lool/adminws>
Order deny,allow
Deny from all
    Allow from YOUR_IP (your nextcloud instance)

I also recommend you to tesit it in a testing environment first :wink:
Enjoy