Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(files): add Collabora Online integration to Docker setup
johavenabe4fa4f89ed
diff --git a/docker/config/collabora/docker-compose.collabora.yaml b/docker/config/collabora/docker-compose.collabora.yamlnew file mode 100644index 00000000..f3ebed27--- /dev/null+++ b/docker/config/collabora/docker-compose.collabora.yaml@@ -0,0 +1,19 @@+services:+ collabora:+ image: collabora/code+ container_name: collabora+ restart: always+ environment:+ - extra_params=--o:ssl.enable=false --o:ssl.termination=false --o:logging.disable_server_audit=true --o:admin_console.enable=false+ cap_drop:+ - ALL+ cap_add:+ - SYS_CHROOT+ - SYS_ADMIN+ logging:+ driver: json-file+ options:+ max-size: "25m"+ max-file: "5"+ networks:+ - sync_in_network\ No newline at end of filediff --git a/docker/config/nginx/collabora.conf b/docker/config/nginx/collabora.confnew file mode 100644index 00000000..0142634e--- /dev/null+++ b/docker/config/nginx/collabora.conf@@ -0,0 +1,19 @@+# Static Files+location ^~ /browser/ {+ proxy_pass http://collabora:9980;+ proxy_set_header Host $http_host;+}++# WOPI Discovery URL and Capabilities+location ^~ /hosting/ {+ proxy_pass http://collabora:9980;+ proxy_set_header Host $http_host;+}++# Main WebSocket + Docs Management+location ^~ /cool/ {+ proxy_pass http://collabora:9980;+ proxy_set_header Host $http_host;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection $connection_upgrade;+}\ No newline at end of filediff --git a/docker/config/nginx/docker-compose.nginx.yaml b/docker/config/nginx/docker-compose.nginx.yamlindex 5fa24a3c..373386f0 100644--- a/docker/config/nginx/docker-compose.nginx.yaml+++ b/docker/config/nginx/docker-compose.nginx.yaml@@ -6,6 +6,7 @@ services:volumes:- ./nginx.conf:/etc/nginx/conf.d/default.conf- ./onlyoffice.conf:/etc/nginx/onlyoffice.conf+ - ./collabora.conf:/etc/nginx/collabora.confports:- "80:80"logging:diff --git a/docker/config/nginx/nginx.conf b/docker/config/nginx/nginx.confindex 4f0b7bcb..278b2a00 100644--- a/docker/config/nginx/nginx.conf+++ b/docker/config/nginx/nginx.conf@@ -60,9 +60,9 @@ server {proxy_buffers 8 512k;proxy_buffer_size 512k; # node highWaterMark- # Generous timeouts for long transfers- proxy_read_timeout 900s;- proxy_send_timeout 900s;+ # Generous timeouts for long transfers or ws+ proxy_read_timeout 3600s;+ proxy_send_timeout 3600s;keepalive_timeout 180 90s;# Clients settings@@ -84,6 +84,11 @@ server {add_header Cache-Control public;}+ # NOTE: This is only needed when the Collabora Online Docker container is running locally+ # and you are not using an external URL.+ # Uncomment the line below to enable it:+ # include collabora.conf;+# NOTE: This is only needed when the OnlyOffice Docker container is running locally# and you are not using an external URL.# Uncomment the line below to enable it:diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex ba51610d..42c2bd33 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -1,6 +1,7 @@#include:# - ./config/nginx/docker-compose.nginx.yaml# - ./config/onlyoffice/docker-compose.onlyoffice.yaml+# - ./config/collabora/docker-compose.collabora.yaml# - ./config/sync-in-desktop-releases/docker-compose.sync-in-desktop-releases.yamlname: sync-indiff --git a/docker/environment.yaml b/docker/environment.yamlindex e475d6be..e474eb6b 100755--- a/docker/environment.yaml+++ b/docker/environment.yaml@@ -10,6 +10,8 @@ auth:applications:files:dataPath: /app/data+ collabora:+ enabled: falseonlyoffice:enabled: falsesecret: onlyOfficeSecret\ No newline at end of filediff --git a/environment/environment.dist.yaml b/environment/environment.dist.yamlindex dd1d8c88..7cf20140 100755--- a/environment/environment.dist.yaml+++ b/environment/environment.dist.yaml@@ -151,22 +151,24 @@ applications:# enable onlyoffice integration# default: falseenabled: false- # For an external server (e.g., https://onlyoffice.domain.com), remember the url must be accessible from browser!- # If externalServer is empty (case of official docker compose), we use the local instance- # default: null- externalServer:# Secret used for jwt tokens, it must be the same on the onlyoffice server# requiredsecret: onlyOfficeSecret+ # If no external server is configured, the local Nginx service from the Docker Compose setup is used.+ # If an external server is configured, it will be used instead.+ # Note: when using an external server (e.g. https://onlyoffice.domain.com), make sure it is accessible from the client/browser.+ # default: null+ externalServer:# If you use https, set to `true`.- # default: `false`+ # default: falseverifySSL: false- collaboraOnline:+ collabora:# enable collabora online integration# default: falseenabled: false- # For an external server (e.g., https://collaboraonline.domain.com), remember the url must be accessible from browser!- # If externalServer is empty (case of official docker compose), we use the local instance+ # If no external server is configured, the local Nginx service from the Docker Compose setup is used.+ # If an external server is configured, it will be used instead.+ # Note: when using an external server (e.g. https://collabora.domain.com), make sure it is accessible from the client/browser.# default: nullexternalServer:appStore: