Merge pull request #794 from nextcloud/enh/748/onlyoffice-collabora-secret

add a secret to onlyoffice
This commit is contained in:
Simon L 2022-06-27 16:47:57 +02:00 committed by GitHub
commit dc87c7d3f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -342,6 +342,8 @@ if [ "$ONLYOFFICE_ENABLED" = 'yes' ]; then
else
php /var/www/html/occ app:update onlyoffice
fi
php /var/www/html/occ config:app:set onlyoffice jwt_secret --value="$ONLYOFFICE_SECRET"
php /var/www/html/occ config:app:set onlyoffice jwt_header --value="AuthorizationJwt"
php /var/www/html/occ config:app:set onlyoffice DocumentServerUrl --value="https://$NC_DOMAIN/onlyoffice"
else
if [ -d "/var/www/html/custom_apps/onlyoffice" ]; then