mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-23 05:25:08 +00:00
OnlyOffice
Description
This Ansible role deploys the ONLYOFFICE Document Server in Docker to provide real-time, in-browser editing for documents, spreadsheets, and presentations. It automates the setup of the Document Server container, Nginx reverse proxy configuration, network isolation via Docker networks, and environment variable management for secure integration with Nextcloud or other WOPI-compatible platforms.
Overview
- Dockerized ONLYOFFICE Document Server: Uses the official
onlyoffice/documentserverimage. - Nginx Reverse Proxy: Configures a public-facing proxy with TLS termination for
/and internal API calls. - Docker Network Management: Creates an isolated
/28subnet for ONLYOFFICE and connects containers securely. - Environment Configuration: Generates a
.envfile containing domain, credentials, and JWT configuration for secure document editing.
Features
- Automatic creation of a dedicated Docker network for ONLYOFFICE.
- Proxy configuration template for Nginx with long timeouts.
- Customizable domain names and ports via Ansible variables.
- Support for SSL/TLS termination at the proxy level.
- Optional JWT signing for secure communication between Nextcloud and Document Server.
- Integration hooks to restart Nginx and recreate Docker Compose stacks on changes.
Documentation
See the role’s README.md, task files, and Jinja2 templates in the roles/web-svc-onlyoffice directory for usage examples and variable definitions.