diff --git a/scripts/install b/scripts/install index 090dc81..076ee3c 100644 --- a/scripts/install +++ b/scripts/install @@ -9,6 +9,10 @@ source _common.sh source /usr/share/yunohost/helpers + + +jwt_secret=$(ynh_string_random --length=32) + #================================================= # NGINX CONFIGURATION #================================================= @@ -30,6 +34,15 @@ 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 +#RabbitMQ options +#echo onlyoffice-documentserver onlyoffice/rabbitmq-host string | debconf-set-selections +#echo onlyoffice-documentserver onlyoffice/rabbitmq-user string | debconf-set-selections +#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 + #================================================= # ADD A CONFIGURATION #=================================================