Collabora CODE-Server

ID 112
Name CODE
OS

Ubuntu 22.04 LTS

Root Disk 32 G
RAM 2 G
Cores 2
Netzwerk 192.168.1.197

Ubuntu 22.04 Iso-Image installieren

Benutzer: Andy
Kennwort: xxxxxxxxxxx

sudo -i
apt update && apt upgrade && apt autoremove -y

apt update && apt -y install qemu-guest-agent
systemctl enable qemu-guest-agent
systemctl start-guest-agent

systemctl status qemu-guest-agent

apt install docker.io

Dann das eigentliche Docker Paket:

## Install Docker Container (single nextcloud) ##
docker run -t -d -p 9980:9980 -e "domain=cloud\\.domain\\.com" --name=COLLABORAOFFICE --restart always --cap-add MKNOD collabora/code

(cloud.domain.com = Nextcloud Domain)

## check log ##
docker logs COLLABORAOFFICE


## Install Docker Container (multiple nextclouds) ##
docker run -t -d -p 9980:9980 -e "domain=(cloud\\.domain\\.com|other\\.domain\\.com)" --name=COLLABORAOFFICE --restart always --cap-add MKNOD collabora/code
In unserem Fall:
docker run -t -d -p 9980:9980 -e "domain=(mastj\\.de|nc\\.mastj\\.de|test\\.mastj\\.de)" --name=COLLABORAOFFICE --restart always --cap-add MKNOD collabora/code

Danach ist der Server unter https://192.168.xxx.xxx:9980 erreichbar. Ist alles korrekt, wird die Eingabe mit "OK" belohnt.

Nun sind noch Einstellungen im NGINX Proxy-Manager nötig:

####### Nginx Proxy Manager config #######

1. Create your new Proxy Host, specify https protocol and the server host/ip and port 9980. Also enable Websockets Support.
2. On the SSL tab select a new certificate, enable HTTP/2.
3. On the Advanced tab, enter:

# static files
location ^~ /loleaflet {
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
}


# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
}


# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}


# download, presentation and image upload
location ~ ^/lool {
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
}


# Admin Console websocket
location ^~ /lool/adminws {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}


Revision #2
Created 2023-10-07 18:14:51 UTC by andy
Updated 2023-10-07 19:43:22 UTC by andy