mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
increase allowed file size in onlyoffice
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# we can't mount it directly because the run-document-server.sh script wants to move it
|
||||||
|
cp /etc/onlyoffice/documentserver/local.dist.json /etc/onlyoffice/documentserver/local.json
|
||||||
|
|
||||||
|
/app/ds/run-document-server.sh
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"services": {
|
||||||
|
"CoAuthoring": {
|
||||||
|
"sql": {
|
||||||
|
"type": "postgres",
|
||||||
|
"dbHost": "localhost",
|
||||||
|
"dbPort": "5432",
|
||||||
|
"dbName": "onlyoffice",
|
||||||
|
"dbUser": "onlyoffice",
|
||||||
|
"dbPass": "onlyoffice"
|
||||||
|
},
|
||||||
|
"token": {
|
||||||
|
"enable": {
|
||||||
|
"request": {
|
||||||
|
"inbox": true,
|
||||||
|
"outbox": true
|
||||||
|
},
|
||||||
|
"browser": true
|
||||||
|
},
|
||||||
|
"inbox": {
|
||||||
|
"header": "Authorization"
|
||||||
|
},
|
||||||
|
"outbox": {
|
||||||
|
"header": "Authorization"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"secret": {
|
||||||
|
"inbox": {
|
||||||
|
"string": "B8LjkNqGxn6gf8bkuBUiMwyuCFwFddnu"
|
||||||
|
},
|
||||||
|
"outbox": {
|
||||||
|
"string": "B8LjkNqGxn6gf8bkuBUiMwyuCFwFddnu"
|
||||||
|
},
|
||||||
|
"session": {
|
||||||
|
"string": "B8LjkNqGxn6gf8bkuBUiMwyuCFwFddnu"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rabbitmq": {
|
||||||
|
"url": "amqp://guest:guest@localhost"
|
||||||
|
},
|
||||||
|
"FileConverter": {
|
||||||
|
"converter": {
|
||||||
|
"inputLimits": [
|
||||||
|
{
|
||||||
|
"type": "docx;dotx;docm;dotm",
|
||||||
|
"zip": {
|
||||||
|
"uncompressed": "1GB",
|
||||||
|
"template": "*.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "xlsx;xltx;xlsm;xltm",
|
||||||
|
"zip": {
|
||||||
|
"uncompressed": "1GB",
|
||||||
|
"template": "*.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pptx;ppsx;potx;pptm;ppsm;potm",
|
||||||
|
"zip": {
|
||||||
|
"uncompressed": "1GB",
|
||||||
|
"template": "*.xml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -199,9 +199,15 @@ services:
|
|||||||
image: onlyoffice/documentserver:7.3.0
|
image: onlyoffice/documentserver:7.3.0
|
||||||
networks:
|
networks:
|
||||||
ocis-net:
|
ocis-net:
|
||||||
|
entrypoint:
|
||||||
|
- /bin/sh
|
||||||
|
- /entrypoint-override.sh
|
||||||
environment:
|
environment:
|
||||||
WOPI_ENABLED: "true"
|
WOPI_ENABLED: "true"
|
||||||
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}" # self signed certificates
|
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}" # self signed certificates
|
||||||
|
volumes:
|
||||||
|
- ./config/onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
|
||||||
|
- ./config/onlyoffice/local.json:/etc/onlyoffice/documentserver/local.dist.json
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.onlyoffice.entrypoints=https"
|
- "traefik.http.routers.onlyoffice.entrypoints=https"
|
||||||
@@ -209,7 +215,7 @@ services:
|
|||||||
- "traefik.http.routers.onlyoffice.tls.certresolver=http"
|
- "traefik.http.routers.onlyoffice.tls.certresolver=http"
|
||||||
- "traefik.http.routers.onlyoffice.service=onlyoffice"
|
- "traefik.http.routers.onlyoffice.service=onlyoffice"
|
||||||
- "traefik.http.services.onlyoffice.loadbalancer.server.port=80"
|
- "traefik.http.services.onlyoffice.loadbalancer.server.port=80"
|
||||||
# websockets can't be opend when this is ommitted
|
# websockets can't be opened when this is ommitted
|
||||||
- "traefik.http.middlewares.onlyoffice.headers.customrequestheaders.X-Forwarded-Proto=https"
|
- "traefik.http.middlewares.onlyoffice.headers.customrequestheaders.X-Forwarded-Proto=https"
|
||||||
- "traefik.http.routers.onlyoffice.middlewares=onlyoffice"
|
- "traefik.http.routers.onlyoffice.middlewares=onlyoffice"
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
Reference in New Issue
Block a user