fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.6 KiB

  1. # from: collabora/code:24.04.4.1.1
  2. docker-image: docker.0k.io/collabora:240404.1.1
  3. docker-compose:
  4. cap_add:
  5. - MKNOD
  6. uses:
  7. nextcloud-app:
  8. #constraint: required | recommended | optional
  9. #auto: pair | summon | none ## default: pair
  10. constraint: required
  11. auto: pair
  12. solves:
  13. server: "document server"
  14. web-proxy:
  15. #constraint: required | recommended | optional
  16. #auto: pair | summon | none ## default: pair
  17. constraint: required
  18. auto: summon
  19. solves:
  20. proxy: "Public access"
  21. default-options:
  22. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:9980
  23. apache-custom-rules:
  24. - !var-expand |
  25. # From: https://help.nextcloud.com/t/how-to-install-collabora-in-docker-with-nextcloud-23/133730
  26. # Encoded slashes need to be allowed
  27. AllowEncodedSlashes NoDecode
  28. # Container uses a unique non-signed certificate
  29. # SSLProxyEngine On
  30. # SSLProxyVerify None
  31. # SSLProxyCheckPeerCN Off
  32. # SSLProxyCheckPeerName Off
  33. # keep the host
  34. ProxyPreserveHost On
  35. # static html, js, images, etc. served from coolwsd
  36. # browser is the client part of Collabora Online
  37. ProxyPass /browser http://${MASTER_BASE_SERVICE_NAME}:9980/browser retry=0
  38. ProxyPassReverse /browser http://${MASTER_BASE_SERVICE_NAME}:9980/browser
  39. # WOPI discovery URL
  40. ProxyPass /hosting/discovery http://${MASTER_BASE_SERVICE_NAME}:9980/hosting/discovery retry=0
  41. ProxyPassReverse /hosting/discovery http://${MASTER_BASE_SERVICE_NAME}:9980/hosting/discovery
  42. # Capabilities
  43. ProxyPass /hosting/capabilities http://${MASTER_BASE_SERVICE_NAME}:9980/hosting/capabilities retry=0
  44. ProxyPassReverse /hosting/capabilities http://${MASTER_BASE_SERVICE_NAME}:9980/hosting/capabilities
  45. # Main websocket
  46. ProxyPassMatch "/cool/(.*)/ws$" ws://${MASTER_BASE_SERVICE_NAME}:9980/cool/\$1/ws nocanon
  47. # Admin Console websocket
  48. ProxyPass /cool/adminws ws://${MASTER_BASE_SERVICE_NAME}:9980/cool/adminws
  49. # Download as, Fullscreen presentation and Image upload operations
  50. ProxyPass /cool http://${MASTER_BASE_SERVICE_NAME}:9980/cool
  51. ProxyPassReverse /cool http://${MASTER_BASE_SERVICE_NAME}:9980/cool
  52. # Compatibility with integrations that use the /lool/convert-to endpoint
  53. ProxyPass /lool http://${MASTER_BASE_SERVICE_NAME}:9980/cool
  54. ProxyPassReverse /lool http://${MASTER_BASE_SERVICE_NAME}:9980/cool