working on onlyoffice+collabora integration
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
||||||
export ABRA_ENTRYPOINT_VERSION=v5
|
export ABRA_ENTRYPOINT_VERSION=v5
|
||||||
export NGINX_CONF_VERSION=v6
|
export NGINX_CONF_VERSION=v6
|
||||||
|
export ONLYOFFICE_CONF_VERSION=v1
|
||||||
export PG_BACKUP_VERSION=v3
|
export PG_BACKUP_VERSION=v3
|
||||||
|
|
||||||
environment() {
|
environment() {
|
||||||
|
|||||||
+46
@@ -59,6 +59,12 @@ x-common-env: &common-env
|
|||||||
# Collaboration
|
# Collaboration
|
||||||
COLLABORATION_API_URL: https://$DOMAIN/collaboration/api/
|
COLLABORATION_API_URL: https://$DOMAIN/collaboration/api/
|
||||||
|
|
||||||
|
# WOPI
|
||||||
|
WOPI_CLIENTS: "collabora,onlyoffice"
|
||||||
|
WOPI_COLLABORA_DISCOVERY_URL: "http://collabora:9980/hosting/discovery"
|
||||||
|
WOPI_ONLYOFFICE_DISCOVERY_URL: "http://onlyoffice/hosting/discovery"
|
||||||
|
WOPI_SRC_BASE_URL: "http://backend:8000"
|
||||||
|
|
||||||
x-postgres-env: &postgres-env
|
x-postgres-env: &postgres-env
|
||||||
# Postgresql db container configuration
|
# Postgresql db container configuration
|
||||||
POSTGRES_DB: drive
|
POSTGRES_DB: drive
|
||||||
@@ -241,6 +247,43 @@ services:
|
|||||||
- "traefik.http.middlewares.minio-cors.headers.addVaryHeader=true"
|
- "traefik.http.middlewares.minio-cors.headers.addVaryHeader=true"
|
||||||
- "traefik.http.routers.minio.middlewares=minio-cors"
|
- "traefik.http.routers.minio.middlewares=minio-cors"
|
||||||
|
|
||||||
|
collabora:
|
||||||
|
image: collabora/code:latest
|
||||||
|
# healthcheck:
|
||||||
|
# test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
|
||||||
|
# interval: 30s
|
||||||
|
# retries: 5
|
||||||
|
# start_period: 60s
|
||||||
|
# timeout: 10s
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
# ports:
|
||||||
|
# - "9980:9980"
|
||||||
|
environment:
|
||||||
|
- extra_params=--o:ssl.enable=false
|
||||||
|
- username=drive
|
||||||
|
- password=password
|
||||||
|
- server_name=localhost:9980
|
||||||
|
- aliasgroup1=app-dev:8000
|
||||||
|
|
||||||
|
|
||||||
|
onlyoffice:
|
||||||
|
image: onlyoffice/documentserver-de:9.2
|
||||||
|
# healthcheck:
|
||||||
|
# test: [ "CMD", "curl", "-f", "http://localhost/hosting/discovery" ]
|
||||||
|
# interval: 30s
|
||||||
|
# retries: 5
|
||||||
|
# start_period: 60s
|
||||||
|
# timeout: 10s
|
||||||
|
environment:
|
||||||
|
TZ: "Europe/Berlin"
|
||||||
|
USE_UNAUTHORIZED_STORAGE: "true"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
configs:
|
||||||
|
- source: onlyoffice_conf
|
||||||
|
target: /etc/onlyoffice/documentserver/local-production-linux.json
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: nginx:1.25
|
image: nginx:1.25
|
||||||
configs:
|
configs:
|
||||||
@@ -284,6 +327,9 @@ configs:
|
|||||||
abra_entrypoint:
|
abra_entrypoint:
|
||||||
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
|
||||||
file: abra-entrypoint.sh
|
file: abra-entrypoint.sh
|
||||||
|
onlyoffice_conf:
|
||||||
|
name: ${STACK_NAME}_onlyoffice_conf_${ONLYOFFICE_CONF_VERSION}
|
||||||
|
file: onlyoffice-config.json
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
django_sk:
|
django_sk:
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"wopi": {
|
||||||
|
"enable": true,
|
||||||
|
"host": "http://localhost:9981",
|
||||||
|
"pdfView": [],
|
||||||
|
"pdfEdit": [],
|
||||||
|
"forms": [],
|
||||||
|
"wordView": [],
|
||||||
|
"wordEdit": ["docx", "dotx", "docm"],
|
||||||
|
"cellView": [],
|
||||||
|
"cellEdit": ["xlsx", "xlsb", "xltx", "xlsm", "csv"],
|
||||||
|
"slideView": [],
|
||||||
|
"slideEdit": ["pptx", "potx", "pptm"],
|
||||||
|
"diagramView": [],
|
||||||
|
"diagramEdit": []
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user