Request: Collabora Online


Recommended Posts

5 hours ago, pervin_1 said:

Sorry was away for a while, I see that you replied to my comment back in Sep. If you are interested, I am willing to write a tutorial with instructions and commands get it to work. PM me please and I will post the instructions here, it's kinda long 

That could be really helpful. I thing that the Nextcloud docker for unRAID has been exceptionally popular in the forums here, and including a how-to for Collabora could be useful to a lot of people. (points two thumbs at self)

Link to comment

How to setup collabora online with Nextcloud behind reverse proxy, 3 steps:

   -Letsencrypt nginx conf file

   -Collabora docker configuration 

   -Installing collabora app under admin account in nextcloud web page

 

The key is to use another domain name for the collabora docker and nginx conf file. Meaning, if you have used cloud.* in letsencrypt nextcloud.subdomain.conf, then you gonna have to use office.* in you server directive of the collabora.subdomain.conf.

 

----First,

let's create the collabora.subdomain.conf file in /mnt/user/appdata/letsencrypt/nginx/proxy-confs (assuming you are using the Unraid UI terminal and linuxserver letsencrypt docker).

Put this code in above-created conf file:

upstream collada-office {
    server your_local_unraid_server_adresss:9980;
}

server {
    listen       443 ssl;
    server_name  office.example.com;
    include /config/nginx/ssl.conf;
    

   # static files
    location ^~ /loleaflet {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }

    # WOPI discovery URL
    location ^~ /hosting/discovery {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }

    # Main websocket
    location ~ /lool/(.*)/ws$ {
        proxy_pass https://collada-office;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }

    # Admin Console websocket
    location ^~ /lool/adminws {
	proxy_buffering off;
        proxy_pass https://collada-office;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }

    # download, presentation and image upload
    location ~ /lool {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }
}

 

---Second,

 

Go to your Unraid docker tab and edit the collaroba docker and make sure it looks like in the screenshot:

docker_page.png

 

 

---Third,

Install the collabora app under the admin account in Nextcloud account and use this down below:

nextcloud_page.png

 

 

Restart all 3 dockers, NextCloud , Letsecncrypt, and Collabora_Online, everything should be up and running. 

 

 

BTW

office.example.com should be also pointing to your home server, just like nextcloud.example.com domain.

 

 

Good luck!!!!

 

 

Edited by pervin_1
  • Like 1
Link to comment
1 hour ago, adoucette said:

That could be really helpful. I thing that the Nextcloud docker for unRAID has been exceptionally popular in the forums here, and including a how-to for Collabora could be useful to a lot of people. (points two thumbs at self)

done, check the post down below and pass on the information if you could to help others!!!!

link 

 

Edited by pervin_1
Link to comment
  • 1 month later...
On 10/6/2018 at 4:32 AM, pervin_1 said:

How to setup collabora online with Nextcloud behind reverse proxy, 3 steps:

   -Letsencrypt nginx conf file

   -Collabora docker configuration 

   -Installing collabora app under admin account in nextcloud web page

 

The key is to use another domain name for the collabora docker and nginx conf file. Meaning, if you have used cloud.* in letsencrypt nextcloud.subdomain.conf, then you gonna have to use office.* in you server directive of the collabora.subdomain.conf.

 

----First,

let's create the collabora.subdomain.conf file in /mnt/user/appdata/letsencrypt/nginx/proxy-confs (assuming you are using the Unraid UI terminal and linuxserver letsencrypt docker).

Put this code in above-created conf file:


upstream collada-office {
    server your_local_unraid_server_adresss:9980;
}

server {
    listen       443 ssl;
    server_name  office.example.com;
    include /config/nginx/ssl.conf;
    

   # static files
    location ^~ /loleaflet {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }

    # WOPI discovery URL
    location ^~ /hosting/discovery {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }

    # Main websocket
    location ~ /lool/(.*)/ws$ {
        proxy_pass https://collada-office;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }

    # Admin Console websocket
    location ^~ /lool/adminws {
	proxy_buffering off;
        proxy_pass https://collada-office;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }

    # download, presentation and image upload
    location ~ /lool {
        proxy_pass https://collada-office;
        proxy_set_header Host $host;
    }
}

 

---Second,

 

Go to your Unraid docker tab and edit the collaroba docker and make sure it looks like in the screenshot:

docker_page.png

 

 

---Third,

Install the collabora app under the admin account in Nextcloud account and use this down below:

nextcloud_page.png

 

 

Restart all 3 dockers, NextCloud , Letsecncrypt, and Collabora_Online, everything should be up and running. 

 

 

BTW

office.example.com should be also pointing to your home server, just like nextcloud.example.com domain.

 

 

Good luck!!!!

 

 

Hi,

I copied your conf file but letsencrypt puts out that error:

nginx: [emerg] unexpected end of file, expecting ";" or "}" in /config/nginx/proxy-confs/collabora.subdomain.conf:47

So i checked the line and there is a }

Can anyone help me with that?

Thanks!

 

Edited by Leuchtekulli
Link to comment

i have done like described, but i get the page:

 

Quote

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.