mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
commit
205cc12c26
16 changed files with 270 additions and 139 deletions
4
.github/workflows/updater.yml
vendored
4
.github/workflows/updater.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch the source code
|
- name: Fetch the source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Run the updater script
|
- name: Run the updater script
|
||||||
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: cpr
|
id: cpr
|
||||||
if: ${{ env.PROCEED == 'true' }}
|
if: ${{ env.PROCEED == 'true' }}
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Update to version ${{ env.VERSION }}
|
commit-message: Update to version ${{ env.VERSION }}
|
||||||
|
|
39
README.md
39
README.md
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
||||||
# OnlyOffice for YunoHost
|
# OnlyOffice for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -15,35 +16,33 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
OnlyOffice Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
|
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
|
||||||
|
|
||||||
Online collaborative edition of OnlyOffice documents requires:
|
Online collaborative edition of ONLYOFFICE documents requires:
|
||||||
1. a server part, with two installation options:
|
1. a server part, with two installation options:
|
||||||
1. OnlyOffice Document Server packaged for YunoHost.
|
1. ONLYOFFICE Document Server packaged for YunoHost.
|
||||||
2. The [Community Document Server for Nextcloud](https://apps.nextcloud.com/apps/documentserver_community)
|
2. The [Community Document Server for Nextcloud](https://apps.nextcloud.com/apps/documentserver_community)
|
||||||
|
|
||||||
2. a client part, such as:
|
2. a client part, such as:
|
||||||
1. The [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
1. The [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
2. The [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
2. The [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
|
|
||||||
The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-Apps/nextcloud_ynh#configure-onlyoffice-integration) to install (1.ii) and (2.i) on one Nextcloud instance. However, performance and architecture are limited.
|
A solution made easy by YunoHost is to install (1.i) and (2.i), see [section below](https://github.com/YunoHost-Apps/onlyoffice_ynh/#configuration-of-onlyoffice-server). The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-Apps/nextcloud_ynh#configure-onlyoffice-integration) to install (1.ii) and (2.i) on one Nextcloud instance. However, performance and architecture are limited.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 7.1.0~ynh1
|
**Shipped version:** 7.3.3~ynh1
|
||||||
|
|
||||||
|
|
||||||
**Demo:** https://www.onlyoffice.com/fr/download-desktop.aspx
|
**Demo:** https://www.onlyoffice.com/fr/download-desktop.aspx
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
* A free 30 days demo of Document Server is available from OnlyOffice connector for Nextcloud:
|
* A free 30 days demo of Document Server is available from ONLYOFFICE connector for Nextcloud:
|
||||||
* Install Nextcloud and the ONLYOFFICE app (connector).
|
* Install Nextcloud and the ONLYOFFICE app (connector).
|
||||||
* Go in the Nextcloud administrator settings, section ONLYOFFICE.
|
* Go in the Nextcloud administrator settings, section ONLYOFFICE.
|
||||||
* Tick the box `Connection to demo ONLYOFFICE Document Server` in Server Parameters.
|
* Tick the box `Connection to demo ONLYOFFICE Document Server` in Server Parameters.
|
||||||
|
@ -51,30 +50,30 @@ The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-App
|
||||||
|
|
||||||
## Prerequisite
|
## Prerequisite
|
||||||
|
|
||||||
You should not install OnlyOffice on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.
|
You should not install ONLYOFFICE on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.
|
||||||
* Add a new domain for OnlyOffice in YunoHost.
|
* Add a new domain for ONLYOFFICE in YunoHost.
|
||||||
* If your main YunoHost domain was provided by YunoHost, e.g. `domain.nohost.me`, then you don't have to buy/register a new domain name.
|
* If your main YunoHost domain was provided by YunoHost, e.g. `domain.nohost.me`, then you don't have to buy/register a new domain name.
|
||||||
* Just click on `I already have a domain`.
|
* Just click on `I already have a domain`.
|
||||||
* Type e.g. `office.domain.nohost.me` and click on `Add`.
|
* Type e.g. `office.domain.nohost.me` and click on `Add`.
|
||||||
* Add a Let's Encrypt certificate for this domain.
|
* Add a Let's Encrypt certificate for this domain.
|
||||||
|
|
||||||
## Configuration of OnlyOffice Server
|
## Configuration of ONLYOFFICE Server
|
||||||
|
|
||||||
* Assuming that:
|
* Assuming that:
|
||||||
* `yunohost.domain` is your main YunoHost domain.
|
* `yunohost.domain` is your main YunoHost domain.
|
||||||
* You have configured `office.yunohost.domain` for OnlyOffice, see Prerequisite above.
|
* You have configured `office.yunohost.domain` for ONLYOFFICE, see Prerequisite above.
|
||||||
* You have Nextcloud installed on `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
* You have Nextcloud installed on `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
||||||
* Install `onlyoffice` using CLI or webadmin.
|
* Install `ONLYOFFICE` using CLI or webadmin.
|
||||||
* Choose a domain name for OnlyOffice that is different from your Nextcloud domain, e.g. `office.yunohost.domain` (or `office.domain.nohost.me`, see previous section).
|
* Choose a domain name for ONLYOFFICE that is different from your Nextcloud domain, e.g. `office.yunohost.domain` (or `office.domain.nohost.me`, see previous section).
|
||||||
* Choose a path for OnlyOffice, e.g. `/` if you install on `office.yunohost.domain` (do not install any other app on this domain).
|
* Choose a path for ONLYOFFICE, e.g. `/` if you install on `office.yunohost.domain` (do not install any other app on this domain).
|
||||||
* The domain of your Nextcloud instance, e.g. `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
* The domain of your Nextcloud instance, e.g. `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
||||||
* Is it a public application? **If you want to connect it to Nextcloud, OnlyOffice should be public**: then select `Yes` or `tick the box`.
|
* Is it a public application? **If you want to connect it to Nextcloud, ONLYOFFICE should be public**: then select `Yes` or `tick the box`.
|
||||||
|
|
||||||
## How to edit OnlyOffice documents?
|
## How to edit ONLYOFFICE documents?
|
||||||
|
|
||||||
### Web Edition in Nextcloud
|
### Web Edition in Nextcloud
|
||||||
|
|
||||||
Prerequisite: **OnlyOffice should be public**, see previous section.
|
Prerequisite: **ONLYOFFICE should be public**, see previous section.
|
||||||
* In Nextcloud apps store, install `ONLYOFFICE`, i.e. the [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice).
|
* In Nextcloud apps store, install `ONLYOFFICE`, i.e. the [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice).
|
||||||
* Go in the Nextcloud `settings` > `Administration` > `ONLYOFFICE` > `Server settings` > `Address of the Document Server`.
|
* Go in the Nextcloud `settings` > `Administration` > `ONLYOFFICE` > `Server settings` > `Address of the Document Server`.
|
||||||
* Give the installation domain of your `onlyoffice`, e.g. `https://office.yunohost.domain/` and click `Save`.
|
* Give the installation domain of your `onlyoffice`, e.g. `https://office.yunohost.domain/` and click `Save`.
|
||||||
|
@ -84,8 +83,8 @@ Prerequisite: **OnlyOffice should be public**, see previous section.
|
||||||
|
|
||||||
* Download and install a [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx).
|
* Download and install a [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx).
|
||||||
* Start ONLYOFFICE and Go to `Connect to cloud` > `Add cloud`.
|
* Start ONLYOFFICE and Go to `Connect to cloud` > `Add cloud`.
|
||||||
* Select `ONLYOFFICE` and give the installation domain of your `onlyoffice`, e.g. `office.yunohost.domain`
|
* Select `ONLYOFFICE` and give the installation domain of your `ONLYOFFICE`, e.g. `office.yunohost.domain`
|
||||||
* or (only if you connected `onlyoffice` to Nextcloud, see previous section).
|
* or (only if you connected `ONLYOFFICE` to Nextcloud, see previous section).
|
||||||
* Select `Nextcloud` and give your Nextcloud installation domain, e.g. `yunohost.domain/nextcloud`.
|
* Select `Nextcloud` and give your Nextcloud installation domain, e.g. `yunohost.domain/nextcloud`.
|
||||||
* Create a new document and enjoy!
|
* Create a new document and enjoy!
|
||||||
|
|
||||||
|
|
61
README_fr.md
61
README_fr.md
|
@ -5,45 +5,44 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# OnlyOffice pour YunoHost
|
# OnlyOffice pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
|
|
||||||
> *Ce package vous permet d'installer OnlyOffice rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d’installer OnlyOffice rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
||||||
|
|
||||||
## Vue d'ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
OnlyOffice Document Server est une suite bureautique en ligne comprenant des visualiseurs et des éditeurs de textes, feuilles de calcul et présentations, entièrement compatible avec les formats Office Open XML: .docx, .xlsx, .pptx et permettant l'édition collaborative en temps réel.
|
ONLYOFFICE Document Server est une suite bureautique en ligne comprenant des visualiseurs et des éditeurs de textes, feuilles de calcul et présentations, entièrement compatible avec les formats Office Open XML: .docx, .xlsx, .pptx et permettant l'édition collaborative en temps réel.
|
||||||
|
|
||||||
L'édition collaborative en ligne des documents OnlyOffice nécessite :
|
L'édition collaborative en ligne des documents ONLYOFFICE nécessite :
|
||||||
1. une partie serveur, avec deux options d'installation :
|
1. une partie serveur, avec deux options d'installation :
|
||||||
1. OnlyOffice Document Server packagé pour YunoHost.
|
1. ONLYOFFICE Document Server packagé pour YunoHost.
|
||||||
2. Le [Community Document Server pour Nextcloud](https://apps.nextcloud.com/apps/documentserver_community).
|
2. Le [Community Document Server pour Nextcloud](https://apps.nextcloud.com/apps/documentserver_community).
|
||||||
|
|
||||||
2. une partie client, telle que :
|
2. une partie client, telle que :
|
||||||
1. [ONLYOFFICE connector pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
1. [ONLYOFFICE connector pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
2. [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
2. [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
|
|
||||||
Les utilisateurs de Nextcloud peuvent suivre [ce tutoriel](https://github.com/YunoHost-Apps/nextcloud_ynh/blob/testing/README_fr.md#configurer-lint%C3%A9gration-donlyoffice) pour installer le Community Document Server (1.ii) et ONLYOFFICE connector (2.i) sur une instance Nextcloud. Cependant, les performances et l'architecture sont limitées.
|
Une solution rendue facile par YunoHost est d'installer (1.i) et (2.i), voir [ci-dessous](https://github.com/YunoHost-Apps/onlyoffice_ynh/blob/master/README_fr.md#configuration-de-onlyoffice-server). Les utilisateurs qui aiment le tout Nextcloud peuvent suivre [ce tutoriel](https://github.com/YunoHost-Apps/nextcloud_ynh/blob/master/README_fr.md#configurer-lint%C3%A9gration-donlyoffice) pour installer le Community Document Server (1.ii) et ONLYOFFICE connector (2.i) sur une instance Nextcloud. Cependant, les performances et l'architecture sont limitées.
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 7.1.0~ynh1
|
**Version incluse :** 7.3.3~ynh1
|
||||||
|
|
||||||
|
|
||||||
**Démo :** https://www.onlyoffice.com/fr/download-desktop.aspx
|
**Démo :** https://www.onlyoffice.com/fr/download-desktop.aspx
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d’écran
|
||||||
|
|
||||||

|

|
||||||

|
|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
## Démo
|
## Démo
|
||||||
|
|
||||||
* Une démo gratuite de 30 jours de Document Server est disponible à partir du connecteur OnlyOffice pour Nextcloud:
|
* Une démo gratuite de 30 jours de Document Server est disponible à partir du connecteur ONLYOFFICE pour Nextcloud:
|
||||||
* Installez Nextcloud et l'application ONLYOFFICE (connector).
|
* Installez Nextcloud et l'application ONLYOFFICE (connector).
|
||||||
* Allez dans les paramètres de l'administrateur Nextcloud, section ONLYOFFICE.
|
* Allez dans les paramètres de l'administrateur Nextcloud, section ONLYOFFICE.
|
||||||
* Cochez la case `Connexion à la démonstration ONLYOFFICE Document Server` dans les paramètres du serveur.
|
* Cochez la case `Connexion à la démonstration ONLYOFFICE Document Server` dans les paramètres du serveur.
|
||||||
|
@ -51,48 +50,48 @@ Les utilisateurs de Nextcloud peuvent suivre [ce tutoriel](https://github.com/Yu
|
||||||
|
|
||||||
## Prérequis
|
## Prérequis
|
||||||
|
|
||||||
Vous ne devez pas installer OnlyOffice sur votre domaine YunoHost principal, surtout si vous souhaitez l'utiliser avec une instance Nextcloud installée sur le même domaine.
|
Vous ne devez pas installer ONLYOFFICE sur votre domaine YunoHost principal, surtout si vous souhaitez l'utiliser avec une instance Nextcloud installée sur le même domaine.
|
||||||
* Ajouter un nouveau domaine pour OnlyOffice dans YunoHost
|
* Ajouter un nouveau domaine pour ONLYOFFICE dans YunoHost
|
||||||
* Si votre domaine YunoHost principal a été fourni par YunoHost, par exemple `domain.nohost.me`, alors vous n'avez pas à acheter/enregistrer un nouveau nom de domaine.
|
* Si votre domaine YunoHost principal a été fourni par YunoHost, par exemple `domain.nohost.me`, alors vous n'avez pas à acheter/enregistrer un nouveau nom de domaine.
|
||||||
* Cliquez simplement sur `J'ai déjà un nom de domaine`.
|
* Cliquez simplement sur `J'ai déjà un nom de domaine`.
|
||||||
* Tapez par exemple `office.domain.nohost.me` et cliquez sur `Ajouter`.
|
* Tapez par exemple `office.domain.nohost.me` et cliquez sur `Ajouter`.
|
||||||
* Ajoutez un certificat Let's Encrypt pour ce domaine.
|
* Ajoutez un certificat Let's Encrypt pour ce domaine.
|
||||||
|
|
||||||
## Configuration de OnlyOffice Server
|
## Configuration de ONLYOFFICE Server
|
||||||
|
|
||||||
* Supposons que :
|
* Supposons que :
|
||||||
* `yunohost.domain` est votre domaine principal YunoHost.
|
* `yunohost.domain` est votre domaine principal YunoHost.
|
||||||
* Vous avez configuré `office.yunohost.domain` pour OnlyOffice, voir Prérequis ci-dessus
|
* Vous avez configuré `office.yunohost.domain` pour ONLYOFFICE, voir Prérequis ci-dessus
|
||||||
* Vous avez Nextcloud installé sur `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
* Vous avez Nextcloud installé sur `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
||||||
* Installez `onlyoffice` à l'aide de la CLI ou de l'administrateur Web
|
* Installez `ONLYOFFICE` à l'aide de la CLI ou de l'administrateur Web
|
||||||
* choisissez un nom de domaine pour OnlyOffice différent de votre domaine Nextcloud, par exemple `office.yunohost.domain` (ou `office.domain.nohost.me`, voir section précédente).
|
* choisissez un nom de domaine pour ONLYOFFICE différent de votre domaine Nextcloud, par exemple `office.yunohost.domain` (ou `office.domain.nohost.me`, voir section précédente).
|
||||||
* Choisissez un chemin pour OnlyOffice, par exemple `/` si vous installez sur `office.yunohost.domain` (n'installez aucune autre application sur ce domaine).
|
* Choisissez un chemin pour ONLYOFFICE, par exemple `/` si vous installez sur `office.yunohost.domain` (n'installez aucune autre application sur ce domaine).
|
||||||
* Le domaine de votre instance Nextcloud, par exemple `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
* Le domaine de votre instance Nextcloud, par exemple `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
||||||
* Est-ce une application publique ? **Si vous souhaitez le connecter à Nextcloud, OnlyOffice doit être public** : puis sélectionnez `Oui` ou `cochez la case`.
|
* Est-ce une application publique ? **Si vous souhaitez le connecter à Nextcloud, ONLYOFFICE doit être public** : puis sélectionnez `Oui` ou `cochez la case`.
|
||||||
|
|
||||||
## Comment éditer des documents OnlyOffice ?
|
## Comment éditer des documents ONLYOFFICE ?
|
||||||
|
|
||||||
### Web Édition dans Nextcloud
|
### Web Édition dans Nextcloud
|
||||||
|
|
||||||
Prérequis : **OnlyOffice doit être public**, voir la section précédente.
|
Prérequis : **ONLYOFFICE doit être public**, voir la section précédente.
|
||||||
* dans le magasin d'applications Nextcloud, installez `ONLYOFFICE`, c'est-à-dire le [connecteur OnlyOffice pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
* dans le magasin d'applications Nextcloud, installez `ONLYOFFICE`, c'est-à-dire le [connecteur ONLYOFFICE pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
* Allez dans Nextcloud `Paramètres` > `Administration` > `ONLYOFFICE` > `Paramètres du serveur` > `Adresse du service d'édition de document`.
|
* Allez dans Nextcloud `Paramètres` > `Administration` > `ONLYOFFICE` > `Paramètres du serveur` > `Adresse du service d'édition de document`.
|
||||||
* Spécifiez le domaine d'installation de votre serveur `onlyoffice`, par exemple `https://office.yunohost.domain/` et cliquez sur `Enregistrer`.
|
* Spécifiez le domaine d'installation de votre serveur `ONLYOFFICE`, par exemple `https://office.yunohost.domain/` et cliquez sur `Enregistrer`.
|
||||||
* Créez un nouveau document !
|
* Créez un nouveau document !
|
||||||
|
|
||||||
### Desktop Édition sur PC
|
### Desktop Édition sur PC
|
||||||
|
|
||||||
* Téléchargez et installez [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
* Téléchargez et installez [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
* Démarrez l'éditeur et allez dans `Connecter au Cloud` > `Ajouter cloud`
|
* Démarrez l'éditeur et allez dans `Connecter au Cloud` > `Ajouter cloud`
|
||||||
* sélectionnez ONLYOFFICE et indiquez le domaine d'installation de votre server OnlyOffice, par ex. `office.yunohost.domain`
|
* sélectionnez ONLYOFFICE et indiquez le domaine d'installation de votre server ONLYOFFICE, par ex. `office.yunohost.domain`
|
||||||
* ou (uniquement si vous avez connecté `onlyoffice` à Nextcloud, voir section précédente).
|
* ou (uniquement si vous avez connecté `ONLYOFFICE` à Nextcloud, voir section précédente).
|
||||||
* Sélectionnez `Nextcloud` et donnez votre domaine d'installation Nextcloud, par exemple `yunohost.domain/nextcloud`.
|
* Sélectionnez `Nextcloud` et donnez votre domaine d'installation Nextcloud, par exemple `yunohost.domain/nextcloud`.
|
||||||
* Créez un nouveau document !
|
* Créez un nouveau document !
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : <https://www.onlyoffice.com>
|
* Site officiel de l’app : <https://www.onlyoffice.com>
|
||||||
* Dépôt de code officiel de l'app : <https://github.com/ONLYOFFICE/DocumentServer>
|
* Dépôt de code officiel de l’app : <https://github.com/ONLYOFFICE/DocumentServer>
|
||||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_onlyoffice>
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_onlyoffice>
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/onlyoffice_ynh/issues>
|
* Signaler un bug : <https://github.com/YunoHost-Apps/onlyoffice_ynh/issues>
|
||||||
|
|
||||||
|
@ -108,4 +107,4 @@ ou
|
||||||
sudo yunohost app upgrade onlyoffice -u https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing --debug
|
sudo yunohost app upgrade onlyoffice -u https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
|
@ -12,7 +12,7 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=eca1121ff00c59325227163109d11c46bbff8e03
|
upgrade=1 from_commit=2be500cb4251cc1209ae36c7f0668aa17be230aa
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
|
@ -21,6 +21,6 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=eca1121ff00c59325227163109d11c46bbff8e03
|
; commit=2be500cb4251cc1209ae36c7f0668aa17be230aa
|
||||||
name=Merge pull request #57 from YunoHost-Apps/testing
|
name=Merge pull request #72 from YunoHost-Apps/testing
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
12
conf/msg_install
Normal file
12
conf/msg_install
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
__APP__ was successfully installed :)
|
||||||
|
|
||||||
|
Please open your __APP__ domain: https://__DOMAIN____PATH_URL__
|
||||||
|
|
||||||
|
To configure OnlyOffice with your Nextcloud, go to the settings:
|
||||||
|
under "Administration > ONLYOFFICE > Server settings >
|
||||||
|
- Address of the Document Server" enter: "https://__DOMAIN____PATH_URL__"
|
||||||
|
- Secret key" enter "__JWT_TOKEN__"
|
||||||
|
|
||||||
|
OnlyOffice should now work with your Nextcloud!
|
||||||
|
|
||||||
|
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/onlyoffice_ynh
|
|
@ -1,4 +1,6 @@
|
||||||
location ^~ __PATH__/ {
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
|
location __PATH__/ {
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__/;
|
proxy_pass http://127.0.0.1:__PORT__/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
@ -10,6 +12,7 @@ location ^~ __PATH__/ {
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
more_set_headers "X-Frame-Options : ALLOW-FROM https://__NEXTCLOUDDOMAIN__ always";
|
more_set_headers "X-Frame-Options : ALLOW-FROM https://__NEXTCLOUDDOMAIN__ always";
|
||||||
client_max_body_size 10M;
|
client_max_body_size 10M;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
OnlyOffice Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
|
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
|
||||||
|
|
||||||
Online collaborative edition of OnlyOffice documents requires:
|
Online collaborative edition of ONLYOFFICE documents requires:
|
||||||
1. a server part, with two installation options:
|
1. a server part, with two installation options:
|
||||||
1. OnlyOffice Document Server packaged for YunoHost.
|
1. ONLYOFFICE Document Server packaged for YunoHost.
|
||||||
2. The [Community Document Server for Nextcloud](https://apps.nextcloud.com/apps/documentserver_community)
|
2. The [Community Document Server for Nextcloud](https://apps.nextcloud.com/apps/documentserver_community)
|
||||||
|
|
||||||
2. a client part, such as:
|
2. a client part, such as:
|
||||||
1. The [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
1. The [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
2. The [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
2. The [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
|
|
||||||
The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-Apps/nextcloud_ynh#configure-onlyoffice-integration) to install (1.ii) and (2.i) on one Nextcloud instance. However, performance and architecture are limited.
|
A solution made easy by YunoHost is to install (1.i) and (2.i), see [section below](https://github.com/YunoHost-Apps/onlyoffice_ynh/#configuration-of-onlyoffice-server). The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-Apps/nextcloud_ynh#configure-onlyoffice-integration) to install (1.ii) and (2.i) on one Nextcloud instance. However, performance and architecture are limited.
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
OnlyOffice Document Server est une suite bureautique en ligne comprenant des visualiseurs et des éditeurs de textes, feuilles de calcul et présentations, entièrement compatible avec les formats Office Open XML: .docx, .xlsx, .pptx et permettant l'édition collaborative en temps réel.
|
ONLYOFFICE Document Server est une suite bureautique en ligne comprenant des visualiseurs et des éditeurs de textes, feuilles de calcul et présentations, entièrement compatible avec les formats Office Open XML: .docx, .xlsx, .pptx et permettant l'édition collaborative en temps réel.
|
||||||
|
|
||||||
L'édition collaborative en ligne des documents OnlyOffice nécessite :
|
L'édition collaborative en ligne des documents ONLYOFFICE nécessite :
|
||||||
1. une partie serveur, avec deux options d'installation :
|
1. une partie serveur, avec deux options d'installation :
|
||||||
1. OnlyOffice Document Server packagé pour YunoHost.
|
1. ONLYOFFICE Document Server packagé pour YunoHost.
|
||||||
2. Le [Community Document Server pour Nextcloud](https://apps.nextcloud.com/apps/documentserver_community).
|
2. Le [Community Document Server pour Nextcloud](https://apps.nextcloud.com/apps/documentserver_community).
|
||||||
|
|
||||||
2. une partie client, telle que :
|
2. une partie client, telle que :
|
||||||
1. [ONLYOFFICE connector pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
1. [ONLYOFFICE connector pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
2. [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
2. [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
|
|
||||||
Les utilisateurs de Nextcloud peuvent suivre [ce tutoriel](https://github.com/YunoHost-Apps/nextcloud_ynh/blob/testing/README_fr.md#configurer-lint%C3%A9gration-donlyoffice) pour installer le Community Document Server (1.ii) et ONLYOFFICE connector (2.i) sur une instance Nextcloud. Cependant, les performances et l'architecture sont limitées.
|
Une solution rendue facile par YunoHost est d'installer (1.i) et (2.i), voir [ci-dessous](https://github.com/YunoHost-Apps/onlyoffice_ynh/blob/master/README_fr.md#configuration-de-onlyoffice-server). Les utilisateurs qui aiment le tout Nextcloud peuvent suivre [ce tutoriel](https://github.com/YunoHost-Apps/nextcloud_ynh/blob/master/README_fr.md#configurer-lint%C3%A9gration-donlyoffice) pour installer le Community Document Server (1.ii) et ONLYOFFICE connector (2.i) sur une instance Nextcloud. Cependant, les performances et l'architecture sont limitées.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
* A free 30 days demo of Document Server is available from OnlyOffice connector for Nextcloud:
|
* A free 30 days demo of Document Server is available from ONLYOFFICE connector for Nextcloud:
|
||||||
* Install Nextcloud and the ONLYOFFICE app (connector).
|
* Install Nextcloud and the ONLYOFFICE app (connector).
|
||||||
* Go in the Nextcloud administrator settings, section ONLYOFFICE.
|
* Go in the Nextcloud administrator settings, section ONLYOFFICE.
|
||||||
* Tick the box `Connection to demo ONLYOFFICE Document Server` in Server Parameters.
|
* Tick the box `Connection to demo ONLYOFFICE Document Server` in Server Parameters.
|
||||||
|
@ -8,30 +8,30 @@
|
||||||
|
|
||||||
## Prerequisite
|
## Prerequisite
|
||||||
|
|
||||||
You should not install OnlyOffice on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.
|
You should not install ONLYOFFICE on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.
|
||||||
* Add a new domain for OnlyOffice in YunoHost.
|
* Add a new domain for ONLYOFFICE in YunoHost.
|
||||||
* If your main YunoHost domain was provided by YunoHost, e.g. `domain.nohost.me`, then you don't have to buy/register a new domain name.
|
* If your main YunoHost domain was provided by YunoHost, e.g. `domain.nohost.me`, then you don't have to buy/register a new domain name.
|
||||||
* Just click on `I already have a domain`.
|
* Just click on `I already have a domain`.
|
||||||
* Type e.g. `office.domain.nohost.me` and click on `Add`.
|
* Type e.g. `office.domain.nohost.me` and click on `Add`.
|
||||||
* Add a Let's Encrypt certificate for this domain.
|
* Add a Let's Encrypt certificate for this domain.
|
||||||
|
|
||||||
## Configuration of OnlyOffice Server
|
## Configuration of ONLYOFFICE Server
|
||||||
|
|
||||||
* Assuming that:
|
* Assuming that:
|
||||||
* `yunohost.domain` is your main YunoHost domain.
|
* `yunohost.domain` is your main YunoHost domain.
|
||||||
* You have configured `office.yunohost.domain` for OnlyOffice, see Prerequisite above.
|
* You have configured `office.yunohost.domain` for ONLYOFFICE, see Prerequisite above.
|
||||||
* You have Nextcloud installed on `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
* You have Nextcloud installed on `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
||||||
* Install `onlyoffice` using CLI or webadmin.
|
* Install `ONLYOFFICE` using CLI or webadmin.
|
||||||
* Choose a domain name for OnlyOffice that is different from your Nextcloud domain, e.g. `office.yunohost.domain` (or `office.domain.nohost.me`, see previous section).
|
* Choose a domain name for ONLYOFFICE that is different from your Nextcloud domain, e.g. `office.yunohost.domain` (or `office.domain.nohost.me`, see previous section).
|
||||||
* Choose a path for OnlyOffice, e.g. `/` if you install on `office.yunohost.domain` (do not install any other app on this domain).
|
* Choose a path for ONLYOFFICE, e.g. `/` if you install on `office.yunohost.domain` (do not install any other app on this domain).
|
||||||
* The domain of your Nextcloud instance, e.g. `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
* The domain of your Nextcloud instance, e.g. `yunohost.domain/nextcloud` or `nextcloud.yunohost.domain`.
|
||||||
* Is it a public application? **If you want to connect it to Nextcloud, OnlyOffice should be public**: then select `Yes` or `tick the box`.
|
* Is it a public application? **If you want to connect it to Nextcloud, ONLYOFFICE should be public**: then select `Yes` or `tick the box`.
|
||||||
|
|
||||||
## How to edit OnlyOffice documents?
|
## How to edit ONLYOFFICE documents?
|
||||||
|
|
||||||
### Web Edition in Nextcloud
|
### Web Edition in Nextcloud
|
||||||
|
|
||||||
Prerequisite: **OnlyOffice should be public**, see previous section.
|
Prerequisite: **ONLYOFFICE should be public**, see previous section.
|
||||||
* In Nextcloud apps store, install `ONLYOFFICE`, i.e. the [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice).
|
* In Nextcloud apps store, install `ONLYOFFICE`, i.e. the [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice).
|
||||||
* Go in the Nextcloud `settings` > `Administration` > `ONLYOFFICE` > `Server settings` > `Address of the Document Server`.
|
* Go in the Nextcloud `settings` > `Administration` > `ONLYOFFICE` > `Server settings` > `Address of the Document Server`.
|
||||||
* Give the installation domain of your `onlyoffice`, e.g. `https://office.yunohost.domain/` and click `Save`.
|
* Give the installation domain of your `onlyoffice`, e.g. `https://office.yunohost.domain/` and click `Save`.
|
||||||
|
@ -41,7 +41,7 @@ Prerequisite: **OnlyOffice should be public**, see previous section.
|
||||||
|
|
||||||
* Download and install a [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx).
|
* Download and install a [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx).
|
||||||
* Start ONLYOFFICE and Go to `Connect to cloud` > `Add cloud`.
|
* Start ONLYOFFICE and Go to `Connect to cloud` > `Add cloud`.
|
||||||
* Select `ONLYOFFICE` and give the installation domain of your `onlyoffice`, e.g. `office.yunohost.domain`
|
* Select `ONLYOFFICE` and give the installation domain of your `ONLYOFFICE`, e.g. `office.yunohost.domain`
|
||||||
* or (only if you connected `onlyoffice` to Nextcloud, see previous section).
|
* or (only if you connected `ONLYOFFICE` to Nextcloud, see previous section).
|
||||||
* Select `Nextcloud` and give your Nextcloud installation domain, e.g. `yunohost.domain/nextcloud`.
|
* Select `Nextcloud` and give your Nextcloud installation domain, e.g. `yunohost.domain/nextcloud`.
|
||||||
* Create a new document and enjoy!
|
* Create a new document and enjoy!
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Démo
|
## Démo
|
||||||
|
|
||||||
* Une démo gratuite de 30 jours de Document Server est disponible à partir du connecteur OnlyOffice pour Nextcloud:
|
* Une démo gratuite de 30 jours de Document Server est disponible à partir du connecteur ONLYOFFICE pour Nextcloud:
|
||||||
* Installez Nextcloud et l'application ONLYOFFICE (connector).
|
* Installez Nextcloud et l'application ONLYOFFICE (connector).
|
||||||
* Allez dans les paramètres de l'administrateur Nextcloud, section ONLYOFFICE.
|
* Allez dans les paramètres de l'administrateur Nextcloud, section ONLYOFFICE.
|
||||||
* Cochez la case `Connexion à la démonstration ONLYOFFICE Document Server` dans les paramètres du serveur.
|
* Cochez la case `Connexion à la démonstration ONLYOFFICE Document Server` dans les paramètres du serveur.
|
||||||
|
@ -8,40 +8,40 @@
|
||||||
|
|
||||||
## Prérequis
|
## Prérequis
|
||||||
|
|
||||||
Vous ne devez pas installer OnlyOffice sur votre domaine YunoHost principal, surtout si vous souhaitez l'utiliser avec une instance Nextcloud installée sur le même domaine.
|
Vous ne devez pas installer ONLYOFFICE sur votre domaine YunoHost principal, surtout si vous souhaitez l'utiliser avec une instance Nextcloud installée sur le même domaine.
|
||||||
* Ajouter un nouveau domaine pour OnlyOffice dans YunoHost
|
* Ajouter un nouveau domaine pour ONLYOFFICE dans YunoHost
|
||||||
* Si votre domaine YunoHost principal a été fourni par YunoHost, par exemple `domain.nohost.me`, alors vous n'avez pas à acheter/enregistrer un nouveau nom de domaine.
|
* Si votre domaine YunoHost principal a été fourni par YunoHost, par exemple `domain.nohost.me`, alors vous n'avez pas à acheter/enregistrer un nouveau nom de domaine.
|
||||||
* Cliquez simplement sur `J'ai déjà un nom de domaine`.
|
* Cliquez simplement sur `J'ai déjà un nom de domaine`.
|
||||||
* Tapez par exemple `office.domain.nohost.me` et cliquez sur `Ajouter`.
|
* Tapez par exemple `office.domain.nohost.me` et cliquez sur `Ajouter`.
|
||||||
* Ajoutez un certificat Let's Encrypt pour ce domaine.
|
* Ajoutez un certificat Let's Encrypt pour ce domaine.
|
||||||
|
|
||||||
## Configuration de OnlyOffice Server
|
## Configuration de ONLYOFFICE Server
|
||||||
|
|
||||||
* Supposons que :
|
* Supposons que :
|
||||||
* `yunohost.domain` est votre domaine principal YunoHost.
|
* `yunohost.domain` est votre domaine principal YunoHost.
|
||||||
* Vous avez configuré `office.yunohost.domain` pour OnlyOffice, voir Prérequis ci-dessus
|
* Vous avez configuré `office.yunohost.domain` pour ONLYOFFICE, voir Prérequis ci-dessus
|
||||||
* Vous avez Nextcloud installé sur `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
* Vous avez Nextcloud installé sur `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
||||||
* Installez `onlyoffice` à l'aide de la CLI ou de l'administrateur Web
|
* Installez `ONLYOFFICE` à l'aide de la CLI ou de l'administrateur Web
|
||||||
* choisissez un nom de domaine pour OnlyOffice différent de votre domaine Nextcloud, par exemple `office.yunohost.domain` (ou `office.domain.nohost.me`, voir section précédente).
|
* choisissez un nom de domaine pour ONLYOFFICE différent de votre domaine Nextcloud, par exemple `office.yunohost.domain` (ou `office.domain.nohost.me`, voir section précédente).
|
||||||
* Choisissez un chemin pour OnlyOffice, par exemple `/` si vous installez sur `office.yunohost.domain` (n'installez aucune autre application sur ce domaine).
|
* Choisissez un chemin pour ONLYOFFICE, par exemple `/` si vous installez sur `office.yunohost.domain` (n'installez aucune autre application sur ce domaine).
|
||||||
* Le domaine de votre instance Nextcloud, par exemple `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
* Le domaine de votre instance Nextcloud, par exemple `yunohost.domain / nextcloud` ou `nextcloud.yunohost.domain`.
|
||||||
* Est-ce une application publique ? **Si vous souhaitez le connecter à Nextcloud, OnlyOffice doit être public** : puis sélectionnez `Oui` ou `cochez la case`.
|
* Est-ce une application publique ? **Si vous souhaitez le connecter à Nextcloud, ONLYOFFICE doit être public** : puis sélectionnez `Oui` ou `cochez la case`.
|
||||||
|
|
||||||
## Comment éditer des documents OnlyOffice ?
|
## Comment éditer des documents ONLYOFFICE ?
|
||||||
|
|
||||||
### Web Édition dans Nextcloud
|
### Web Édition dans Nextcloud
|
||||||
|
|
||||||
Prérequis : **OnlyOffice doit être public**, voir la section précédente.
|
Prérequis : **ONLYOFFICE doit être public**, voir la section précédente.
|
||||||
* dans le magasin d'applications Nextcloud, installez `ONLYOFFICE`, c'est-à-dire le [connecteur OnlyOffice pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
* dans le magasin d'applications Nextcloud, installez `ONLYOFFICE`, c'est-à-dire le [connecteur ONLYOFFICE pour Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||||
* Allez dans Nextcloud `Paramètres` > `Administration` > `ONLYOFFICE` > `Paramètres du serveur` > `Adresse du service d'édition de document`.
|
* Allez dans Nextcloud `Paramètres` > `Administration` > `ONLYOFFICE` > `Paramètres du serveur` > `Adresse du service d'édition de document`.
|
||||||
* Spécifiez le domaine d'installation de votre serveur `onlyoffice`, par exemple `https://office.yunohost.domain/` et cliquez sur `Enregistrer`.
|
* Spécifiez le domaine d'installation de votre serveur `ONLYOFFICE`, par exemple `https://office.yunohost.domain/` et cliquez sur `Enregistrer`.
|
||||||
* Créez un nouveau document !
|
* Créez un nouveau document !
|
||||||
|
|
||||||
### Desktop Édition sur PC
|
### Desktop Édition sur PC
|
||||||
|
|
||||||
* Téléchargez et installez [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
* Téléchargez et installez [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||||
* Démarrez l'éditeur et allez dans `Connecter au Cloud` > `Ajouter cloud`
|
* Démarrez l'éditeur et allez dans `Connecter au Cloud` > `Ajouter cloud`
|
||||||
* sélectionnez ONLYOFFICE et indiquez le domaine d'installation de votre server OnlyOffice, par ex. `office.yunohost.domain`
|
* sélectionnez ONLYOFFICE et indiquez le domaine d'installation de votre server ONLYOFFICE, par ex. `office.yunohost.domain`
|
||||||
* ou (uniquement si vous avez connecté `onlyoffice` à Nextcloud, voir section précédente).
|
* ou (uniquement si vous avez connecté `ONLYOFFICE` à Nextcloud, voir section précédente).
|
||||||
* Sélectionnez `Nextcloud` et donnez votre domaine d'installation Nextcloud, par exemple `yunohost.domain/nextcloud`.
|
* Sélectionnez `Nextcloud` et donnez votre domaine d'installation Nextcloud, par exemple `yunohost.domain/nextcloud`.
|
||||||
* Créez un nouveau document !
|
* Créez un nouveau document !
|
||||||
|
|
BIN
doc/screenshots/.DS_Store
vendored
BIN
doc/screenshots/.DS_Store
vendored
Binary file not shown.
|
@ -6,7 +6,7 @@
|
||||||
"en": "Create and edit documents collaboratively",
|
"en": "Create and edit documents collaboratively",
|
||||||
"fr": "Créez et éditer des documents collaborativement"
|
"fr": "Créez et éditer des documents collaborativement"
|
||||||
},
|
},
|
||||||
"version": "7.1.0~ynh1",
|
"version": "7.3.3~ynh1",
|
||||||
"url": "https://www.onlyoffice.com",
|
"url": "https://www.onlyoffice.com",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 11.0.9"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
@ -69,6 +69,10 @@
|
||||||
"fr": "Installez le connecteur OnlyOffice pour éditer des documents dans Nextcloud."
|
"fr": "Installez le connecteur OnlyOffice pour éditer des documents dans Nextcloud."
|
||||||
},
|
},
|
||||||
"default": "yunohost.domain/nextcloud"
|
"default": "yunohost.domain/nextcloud"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "admin",
|
||||||
|
"type": "user"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="postgresql postgresql-contrib libstdc++6 rabbitmq-server libcurl4-dev"
|
pkg_dependencies="postgresql postgresql-contrib libstdc++6 rabbitmq-server libcurl4-dev"
|
||||||
contrib_dependencies="ttf-mscorefonts-installer"
|
|
||||||
extra_dependencies="onlyoffice-documentserver"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
@ -20,3 +18,129 @@ extra_dependencies="onlyoffice-documentserver"
|
||||||
#=================================================
|
#=================================================
|
||||||
# FUTURE OFFICIAL HELPERS
|
# FUTURE OFFICIAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# Send an email to inform the administrator
|
||||||
|
#
|
||||||
|
# usage: ynh_send_readme_to_admin --app_message=app_message [--recipients=recipients] [--type=type]
|
||||||
|
# | arg: -m --app_message= - The file with the content to send to the administrator.
|
||||||
|
# | arg: -r, --recipients= - The recipients of this email. Use spaces to separate multiples recipients. - default: root
|
||||||
|
# example: "root admin@domain"
|
||||||
|
# If you give the name of a YunoHost user, ynh_send_readme_to_admin will find its email adress for you
|
||||||
|
# example: "root admin@domain user1 user2"
|
||||||
|
# | arg: -t, --type= - Type of mail, could be 'backup', 'change_url', 'install', 'remove', 'restore', 'upgrade'
|
||||||
|
#
|
||||||
|
# Requires YunoHost version 4.1.0 or higher.
|
||||||
|
ynh_send_readme_to_admin() {
|
||||||
|
# Declare an array to define the options of this helper.
|
||||||
|
declare -Ar args_array=( [m]=app_message= [r]=recipients= [t]=type= )
|
||||||
|
local app_message
|
||||||
|
local recipients
|
||||||
|
local type
|
||||||
|
# Manage arguments with getopts
|
||||||
|
|
||||||
|
ynh_handle_getopts_args "$@"
|
||||||
|
app_message="${app_message:-}"
|
||||||
|
recipients="${recipients:-root}"
|
||||||
|
type="${type:-install}"
|
||||||
|
|
||||||
|
# Get the value of admin_mail_html
|
||||||
|
admin_mail_html=$(ynh_app_setting_get $app admin_mail_html)
|
||||||
|
admin_mail_html="${admin_mail_html:-0}"
|
||||||
|
|
||||||
|
# Retrieve the email of users
|
||||||
|
find_mails () {
|
||||||
|
local list_mails="$1"
|
||||||
|
local mail
|
||||||
|
local recipients=" "
|
||||||
|
# Read each mail in argument
|
||||||
|
for mail in $list_mails
|
||||||
|
do
|
||||||
|
# Keep root or a real email address as it is
|
||||||
|
if [ "$mail" = "root" ] || echo "$mail" | grep --quiet "@"
|
||||||
|
then
|
||||||
|
recipients="$recipients $mail"
|
||||||
|
else
|
||||||
|
# But replace an user name without a domain after by its email
|
||||||
|
if mail=$(ynh_user_get_info "$mail" "mail" 2> /dev/null)
|
||||||
|
then
|
||||||
|
recipients="$recipients $mail"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "$recipients"
|
||||||
|
}
|
||||||
|
recipients=$(find_mails "$recipients")
|
||||||
|
|
||||||
|
# Subject base
|
||||||
|
local mail_subject="☁️🆈🅽🅷☁️: \`$app\`"
|
||||||
|
|
||||||
|
# Adapt the subject according to the type of mail required.
|
||||||
|
if [ "$type" = "backup" ]; then
|
||||||
|
mail_subject="$mail_subject has just been backup."
|
||||||
|
elif [ "$type" = "change_url" ]; then
|
||||||
|
mail_subject="$mail_subject has just been moved to a new URL!"
|
||||||
|
elif [ "$type" = "remove" ]; then
|
||||||
|
mail_subject="$mail_subject has just been removed!"
|
||||||
|
elif [ "$type" = "restore" ]; then
|
||||||
|
mail_subject="$mail_subject has just been restored!"
|
||||||
|
elif [ "$type" = "upgrade" ]; then
|
||||||
|
mail_subject="$mail_subject has just been upgraded!"
|
||||||
|
else # install
|
||||||
|
mail_subject="$mail_subject has just been installed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ynh_add_config --template="$app_message" --destination="../conf/msg__to_send"
|
||||||
|
|
||||||
|
ynh_delete_file_checksum --file="../conf/msg__to_send"
|
||||||
|
|
||||||
|
local mail_message="This is an automated message from your beloved YunoHost server.
|
||||||
|
Specific information for the application $app.
|
||||||
|
$(cat "../conf/msg__to_send")"
|
||||||
|
|
||||||
|
# Store the message into a file for further modifications.
|
||||||
|
echo "$mail_message" > mail_to_send
|
||||||
|
|
||||||
|
# If a html email is required. Apply html tags to the message.
|
||||||
|
if [ "$admin_mail_html" -eq 1 ]
|
||||||
|
then
|
||||||
|
# Insert 'br' tags at each ending of lines.
|
||||||
|
ynh_replace_string "$" "<br>" mail_to_send
|
||||||
|
|
||||||
|
# Insert starting HTML tags
|
||||||
|
sed --in-place '1s@^@<!DOCTYPE html>\n<html>\n<head></head>\n<body>\n@' mail_to_send
|
||||||
|
|
||||||
|
# Keep tabulations
|
||||||
|
ynh_replace_string " " "\ \ " mail_to_send
|
||||||
|
ynh_replace_string "\t" "\ \ " mail_to_send
|
||||||
|
|
||||||
|
# Insert url links tags
|
||||||
|
ynh_replace_string "__URL_TAG1__\(.*\)__URL_TAG2__\(.*\)__URL_TAG3__" "<a href=\"\2\">\1</a>" mail_to_send
|
||||||
|
|
||||||
|
# Insert finishing HTML tags
|
||||||
|
echo -e "\n</body>\n</html>" >> mail_to_send
|
||||||
|
|
||||||
|
# Otherwise, remove tags to keep a plain text.
|
||||||
|
else
|
||||||
|
# Remove URL tags
|
||||||
|
ynh_replace_string "__URL_TAG[1,3]__" "" mail_to_send
|
||||||
|
ynh_replace_string "__URL_TAG2__" ": " mail_to_send
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Define binary to use for mail command
|
||||||
|
if [ -e /usr/bin/bsd-mailx ]
|
||||||
|
then
|
||||||
|
local mail_bin=/usr/bin/bsd-mailx
|
||||||
|
else
|
||||||
|
local mail_bin=/usr/bin/mail.mailutils
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$admin_mail_html" -eq 1 ]
|
||||||
|
then
|
||||||
|
content_type="text/html"
|
||||||
|
else
|
||||||
|
content_type="text/plain"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Send the email to the recipients
|
||||||
|
cat mail_to_send | $mail_bin -a "Content-Type: $content_type; charset=UTF-8" -s "$mail_subject" "$recipients"
|
||||||
|
}
|
|
@ -26,6 +26,8 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
nextclouddomain=$YNH_APP_ARG_NEXTCLOUDDOMAIN
|
nextclouddomain=$YNH_APP_ARG_NEXTCLOUDDOMAIN
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
|
admin_mail=$(ynh_user_get_info --username=$admin --key="mail")
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
|
@ -70,7 +72,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
ynh_script_progression --message="Installing dependencies..."
|
ynh_script_progression --message="Installing dependencies..."
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ buster main contrib" --package=$contrib_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ $(lsb_release --codename --short) main contrib" --package="ttf-mscorefonts-installer" --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -103,7 +105,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config "nextclouddomain"
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
|
@ -118,19 +120,19 @@ echo onlyoffice-documentserver onlyoffice/db-user string $db_user | debconf-set-
|
||||||
echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections
|
||||||
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
||||||
|
|
||||||
|
#echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean false | debconf-set-selections
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL ONLYOFFICE
|
# INSTALL ONLYOFFICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Install OnlyOffice..."
|
ynh_script_progression --message="Install OnlyOffice..."
|
||||||
|
|
||||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 2>/dev/null
|
# The OnlyOffice dev had the magnificent idea to add a "nginx restart" during
|
||||||
|
|
||||||
# The onlyoffice dev had the magnificent idea to add a "nginx restart" during
|
|
||||||
# the install/configure of their package, which is awful since that will
|
# the install/configure of their package, which is awful since that will
|
||||||
# restart nginx and the whole webadmin and maybe even the yunohost command
|
# restart NGINX and the whole webadmin and maybe even the YunoHost command
|
||||||
# running the install ...
|
# running the install...
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package=$extra_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package="onlyoffice-documentserver" --key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD A CONFIGURATION
|
# ADD A CONFIGURATION
|
||||||
|
@ -149,23 +151,12 @@ chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R ds:ds "$final_path"
|
chown -R ds:ds "$final_path"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# START SYSTEMD SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Starting a systemd service..."
|
|
||||||
|
|
||||||
supervisorctl reload
|
|
||||||
|
|
||||||
sleep 30
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REGENERATE FONTS
|
# REGENERATE FONTS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Generating fonts..."
|
ynh_script_progression --message="Generating fonts..."
|
||||||
|
|
||||||
/usr/bin/documentserver-generate-allfonts.sh
|
/usr/bin/documentserver-generate-allfonts.sh 2>/dev/null
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
@ -187,6 +178,15 @@ ynh_script_progression --message="Reloading NGINX web server..."
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SEND A README FOR THE ADMIN
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Sending a readme for the admin..."
|
||||||
|
|
||||||
|
jwt_token=$(documentserver-jwt-status.sh | sed "3q;d" | cut -d "-" -f 2 | tr -d ' ')
|
||||||
|
|
||||||
|
ynh_send_readme_to_admin --app_message="../conf/msg_install" --recipients=$admin_mail --type='install'
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -60,7 +60,7 @@ ynh_script_progression --message="Reinstalling dependencies..."
|
||||||
|
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ buster main contrib" --package=$contrib_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ buster main contrib" --package="ttf-mscorefonts-installer" --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
|
@ -94,9 +94,7 @@ echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling OnlyOffice..."
|
ynh_script_progression --message="Reinstalling OnlyOffice..."
|
||||||
|
|
||||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package="onlyoffice-documentserver" --key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package=$extra_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE CONFIGURATION
|
# RESTORE THE CONFIGURATION
|
||||||
|
@ -126,17 +124,6 @@ chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R ds:ds "$final_path"
|
chown -R ds:ds "$final_path"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# START SYSTEMD SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Starting a systemd service..."
|
|
||||||
|
|
||||||
supervisorctl reload
|
|
||||||
|
|
||||||
sleep 30
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -95,7 +95,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
ynh_script_progression --message="Upgrading dependencies..."
|
ynh_script_progression --message="Upgrading dependencies..."
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ buster main contrib" --package=$contrib_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="deb http://deb.debian.org/debian/ $(lsb_release --codename --short) main contrib" --package="ttf-mscorefonts-installer" --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -131,10 +131,13 @@ echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-
|
||||||
ynh_script_progression --message="Upgrading OnlyOffice..."
|
ynh_script_progression --message="Upgrading OnlyOffice..."
|
||||||
|
|
||||||
ynh_remove_extra_repo --name="$app" # backward compat
|
ynh_remove_extra_repo --name="$app" # backward compat
|
||||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
|
||||||
|
# keyserver.ubuntu.com response an error 500 regularly
|
||||||
|
# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
||||||
|
|
||||||
# ynh_remove_app_dependencies
|
# ynh_remove_app_dependencies
|
||||||
ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package=$extra_dependencies --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc"
|
ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package="onlyoffice-documentserver" --key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
|
@ -169,11 +172,11 @@ chown -R ds:ds "$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..."
|
# ynh_script_progression --message="Starting a systemd service..."
|
||||||
|
|
||||||
supervisorctl reload
|
# supervisorctl reload
|
||||||
|
|
||||||
sleep 30
|
# sleep 30
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue