From 63ef78d0364d7b8f06ec2daf7051a4f90b01c877 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 27 May 2020 14:13:49 +0200 Subject: [PATCH] onlyoffice works without hack --- README.md | 3 +-- README_fr.md | 3 +-- conf/nginx.conf | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3c48bca..de17cac 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,7 @@ Starting from Nextcloud 18, it features a direct integration of OnlyOffice (an o To install and configure it: - Install *Community Document Server* application in your Nextcloud. That's the part that runs OnlyOffice server. - Install OnlyOffice application. That's the client part that will connect to an OnlyOffice server. -- Then in Settings -> OnlyOffice (`https://yourdomain.tld/nextcloud/settings/admin/onlyoffice`), you need to configure its URL with `https://yourdomain.tld/nextcloud/index.php/apps/documentserver_community/` (an URL might be defined by default, but is not always correct). Please note the **`/index.php/`**. Keep others server parameters empty. Save it. -- You can also configure which file formats should be opened by OnlyOffice. +- Then in Settings -> OnlyOffice (`https://yourdomain.tld/nextcloud/settings/admin/onlyoffice`), if you want to configure which file formats should be opened by OnlyOffice. - Here you go :) You should be able to create new type of documents and open them. *NB: OnlyOffice is only available for x86 architecture - **ARM** (Raspberry Pi, …) is **not** supported* diff --git a/README_fr.md b/README_fr.md index 1adf19e..a80bc2f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -38,8 +38,7 @@ Avec NextCloud vous pouvez synchroniser vos fichiers sur vos appareils. Pour l'installer et le configurer: - Installez l'application *Community Document Server* dans votre Nextcloud. C'est la partie qui fait tourner un serveur OnlyOffice. - Installez l'application *OnlyOffice*. C'est la partie cliente qui va se connecter au serveur OnlyOffice. - - Ensuite dans les Paramètres -> OnlyOffice (`https://yourdomain.tld/nextcloud/settings/admin/onlyoffice`), vous devez le configurer avec l'URL suivante `https://yourdomain.tld/nextcloud/index.php/apps/documentserver_community/` (une URL peut-être préremplie, mais elle n'est pas toujours correcte). Veuillez noter la présence de **`/index.php/`**. Laissez les autres paramètres vides. Sauvegardez. - - Vous pouvez aussi configurer quels formats de fichier s'ouvrent avec OnlyOffice. + - Ensuite dans les Paramètres -> OnlyOffice (`https://yourdomain.tld/nextcloud/settings/admin/onlyoffice`), si vous voulez configurer quels formats de fichier s'ouvrent avec OnlyOffice. - Et voilà :) Vous devriez pouvoir créer de nouveaux types de documents, et les ouvrir. *NB: OnlyOffice n'est disponible que sous architecture x86 - **ARM** (Raspberry Pi, …) n'est **pas** supporté* diff --git a/conf/nginx.conf b/conf/nginx.conf index 4ddb371..09cc770 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -115,6 +115,9 @@ location ^~ __PATH__/ { rewrite ^ __PATH__/index.php$request_uri; } + location ~* ^__PATH__/apps/documentserver_community/ { + rewrite ^ __PATH__/index.php$request_uri; + } # Adding the cache control header for js, css and map files location ~ ^\__PATH__\/.+[^\/]\.(?:css|js|woff2?|svg|gif|map)$ {