fix(nextcloud): make onlyoffice trust new proxy
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
6cf090e2f2
commit
40ee4f048c
1 changed files with 5 additions and 1 deletions
|
@ -60,12 +60,16 @@ in {
|
||||||
"/var/lib/onlyoffice"
|
"/var/lib/onlyoffice"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Fix mobile editing
|
|
||||||
entrypoint = ''bash -c "${let
|
entrypoint = ''bash -c "${let
|
||||||
filePath = "/var/www/onlyoffice/documentserver/web-apps/apps/*/mobile/dist/js/app.js";
|
filePath = "/var/www/onlyoffice/documentserver/web-apps/apps/*/mobile/dist/js/app.js";
|
||||||
func = "isSupportEditFeature=function()";
|
func = "isSupportEditFeature=function()";
|
||||||
in
|
in
|
||||||
concatStrings [
|
concatStrings [
|
||||||
|
# Fix proxies
|
||||||
|
''sed -i 's/"allowPrivateIPAddress": false,/"allowPrivateIPAddress": true,/' /etc/onlyoffice/documentserver/default.json''
|
||||||
|
''sed -i 's/"allowMetaIPAddress": false/"allowMetaIPAddress": true/' /etc/onlyoffice/documentserver/default.json''
|
||||||
|
|
||||||
|
# Fix mobile editing
|
||||||
"sed -i 's/${func}{return!1}/${func}{return 1}/g' ${filePath};"
|
"sed -i 's/${func}{return!1}/${func}{return 1}/g' ${filePath};"
|
||||||
"/app/ds/run-document-server.sh;"
|
"/app/ds/run-document-server.sh;"
|
||||||
"apt update;"
|
"apt update;"
|
||||||
|
|
Loading…
Reference in a new issue