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)