add a secret to onlyoffice and collabora

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-06-07 00:48:30 +02:00
parent 3c14cc2676
commit 2cf98773cc
2 changed files with 12 additions and 3 deletions

View file

@ -341,6 +341,8 @@ if [ "$ONLYOFFICE_ENABLED" = 'yes' ]; then
else else
php /var/www/html/occ app:update onlyoffice php /var/www/html/occ app:update onlyoffice
fi 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" php /var/www/html/occ config:app:set onlyoffice DocumentServerUrl --value="https://$NC_DOMAIN/onlyoffice"
else else
if [ -d "/var/www/html/custom_apps/onlyoffice" ]; then if [ -d "/var/www/html/custom_apps/onlyoffice" ]; then

View file

@ -128,6 +128,7 @@
"OVERWRITEPROTOCOL=https", "OVERWRITEPROTOCOL=https",
"TURN_SECRET=%TURN_SECRET%", "TURN_SECRET=%TURN_SECRET%",
"SIGNALING_SECRET=%SIGNALING_SECRET%", "SIGNALING_SECRET=%SIGNALING_SECRET%",
"ONLYOFFICE_SECRET=%ONLYOFFICE_SECRET%",
"AIO_URL=%AIO_URL%", "AIO_URL=%AIO_URL%",
"NEXTCLOUD_MOUNT=%NEXTCLOUD_MOUNT%", "NEXTCLOUD_MOUNT=%NEXTCLOUD_MOUNT%",
"CLAMAV_ENABLED=%CLAMAV_ENABLED%", "CLAMAV_ENABLED=%CLAMAV_ENABLED%",
@ -158,7 +159,8 @@
], ],
"volumes": [], "volumes": [],
"secrets": [ "secrets": [
"REDIS_PASSWORD" "REDIS_PASSWORD",
"ONLYOFFICE_SECRET"
], ],
"maxShutdownTime": 10, "maxShutdownTime": 10,
"restartPolicy": "unless-stopped" "restartPolicy": "unless-stopped"
@ -345,7 +347,10 @@
"80" "80"
], ],
"environmentVariables": [ "environmentVariables": [
"TZ=%TIMEZONE%" "TZ=%TIMEZONE%",
"JWT_ENABLED=true",
"JWT_HEADER=AuthorizationJwt",
"JWT_SECRET=%ONLYOFFICE_SECRET%"
], ],
"volumes": [ "volumes": [
{ {
@ -354,7 +359,9 @@
"writeable": true "writeable": true
} }
], ],
"secrets": [], "secrets": [
"ONLYOFFICE_SECRET"
],
"maxShutdownTime": 10, "maxShutdownTime": 10,
"restartPolicy": "unless-stopped" "restartPolicy": "unless-stopped"
} }