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…
Add table
Add a link
Reference in a new issue