# collabora Deploys [Collabora Online](https://www.collaboraonline.com/) (CODE, `collabora/code`) via Docker Compose behind Traefik. Collabora is the WOPI backend that renders office documents for Nextcloud and OpenCloud. The role templates `coolwsd.xml` to declare which WOPI hosts may call Collabora and which origins may embed it in an iframe. ## Role variables | Variable | Default | Description | | --- | --- | --- | | `collabora_domains` | `[office.local.test]` | FQDNs the router accepts; first is canonical. | | `collabora_image` | `collabora/code:latest` | Container image. | | `collabora_port` | `9980` | Container port Traefik forwards to. | | `collabora_traefik_network` | `proxy` | Docker network shared with Traefik. | | `collabora_use_ssl` | `true` | Enable the TLS resolver on the router. | | `collabora_ssl_verification` | `true` | Verify TLS on WOPI callbacks (false for self-signed). | | `collabora_allowed_domains` | `[nextcloud.local.test]` | WOPI hosts allowed to call Collabora (regex). | | `collabora_frame_ancestors` | `[nextcloud.local.test]` | Origins allowed to embed Collabora in an iframe. | | `collabora_extra_hosts` | `[]` | Extra `host:ip` entries for in-container DNS. | ## Example ```yaml - hosts: services become: true roles: - role: digitalboard.core.collabora vars: collabora_domains: - "office.example.com" collabora_allowed_domains: - "cloud.example.com" collabora_frame_ancestors: - "cloud.example.com" ``` ## License MIT-0