diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 7511944..43b3a11 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -34,7 +34,9 @@ You should not install ONLYOFFICE on your main YunoHost domain, especially if yo 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). * 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/`. +* Give the secret key that was sent to you by email during the install (you can also retrieve it with the CLI command `sudo documentserver-jwt-status.sh`). +* Click `Save`. * Create a new document and enjoy! ### Desktop Edition on PC diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index af2a969..e828325 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -34,7 +34,9 @@ Vous ne devez pas installer ONLYOFFICE sur votre domaine YunoHost principal, sur 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) * 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/`. +* Renseignez la clé secrète qui vous a été envoyée par email lors de l'installation (vous pouvez aussi la retrouve avec la ligne de commande `sudo documentserver-jwt-status.sh`). +* Cliquez sur `Enregistrer`. * Créez un nouveau document ! ### Desktop Édition sur PC diff --git a/scripts/install b/scripts/install index 17de47c..452405c 100644 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,6 @@ echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set- #echo onlyoffice-documentserver onlyoffice/rabbitmq-pwd password | debconf-set-selections #JWT options -echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean true | debconf-set-selections echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections #================================================= diff --git a/scripts/restore b/scripts/restore index 036dd85..310ad82 100644 --- a/scripts/restore +++ b/scripts/restore @@ -35,6 +35,9 @@ 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-name string $db_name | debconf-set-selections +#JWT options +#echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections + #================================================= # RESTORE THE CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 46a1dbb..b566dee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,8 +48,7 @@ echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set- echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections #JWT options -echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean true | debconf-set-selections -echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections +#echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections #================================================= # UPDATE A CONFIG FILE