From 32898d0bf3c180c671908b3b04fd740c53e2bc0f Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 12 May 2023 18:26:08 +0200 Subject: [PATCH] Notes on Onlyoffice Requires CSP and how I set it Podman command for Onlyoffice just sets the token Multiple links on Installation, integration and proxy configuration linked --- pages/02.linux/nextcloud/default.en.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/02.linux/nextcloud/default.en.md b/pages/02.linux/nextcloud/default.en.md index 2e9fc26..2556815 100644 --- a/pages/02.linux/nextcloud/default.en.md +++ b/pages/02.linux/nextcloud/default.en.md @@ -278,11 +278,19 @@ server { ## Onlyoffice Container -> Unfinished +Integrating onlyoffice, requires setting the correct Content Security Policy headers on the webserver. Using CSP also introduces blockages in Nextcloud that have to be fixed. The console view is your friend for finding every issue. +For my installation, the headers needed to be set like this. + +``` +Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: onlyoffice.exu.li;" +``` ```sh -podman run -it -d --name onlyoffice -p 9480:80 \ - --restart always \ - --label "io.containers.autoupdate=image" \ - docker.io/onlyoffice/documentserver:latest +sudo podman run -itd --name onlyoffice -p 8080:80 \ + -e JWT_SECRET={secret key} \ + docker.io/onlyoffice/documentserver ``` + +> [Installing ONLYOFFICE Docs Community Edition for Docker on a local server](https://helpcenter.onlyoffice.com/installation/docs-community-install-docker.aspx) +> [About the ONLYOFFICE and Nextcloud integration](https://helpcenter.onlyoffice.com/integration/gettingstarted-nextcloud.aspx) +> [Using ONLYOFFICE Docs behind the proxy](https://helpcenter.onlyoffice.com/installation/docs-community-proxy.aspx)