diff --git a/docker/docker-compose-dev-db.yml b/docker/docker-compose-dev-db.yml index a009a92c2..b200ef41b 100644 --- a/docker/docker-compose-dev-db.yml +++ b/docker/docker-compose-dev-db.yml @@ -29,33 +29,13 @@ services: DEBUG: 'True' DATABASE_URL: postgresql://sapl:sapl@sapldb-dev:5432/sapl TZ: America/Sao_Paulo - ONLYOFFICE_URL: 'http://onlyoffice:80' - depends_on: - - onlyoffice - networks: - - sapl-net-dev - - onlyoffice: - container_name: onlyoffice-documentserver - image: onlyoffice/documentserver:latest - ports: - - "8001:80" - environment: - - JWT_ENABLED=false - - ALLOW_PRIVATE_IP_ADDRESS=true - - ALLOW_META_IP_ADDRESS=true - volumes: - - onlyoffice_data:/var/www/onlyoffice/Data - - onlyoffice_log:/var/log/onlyoffice - restart: unless-stopped + ONLYOFFICE_URL: 'https://onlyoffice.legisinc.com.br' + ONLYOFFICE_JWT_ENABLED: 'True' + ONLYOFFICE_JWT_SECRET: 'sapl_onlyoffice_super_secret' networks: - sapl-net-dev networks: sapl-net-dev: name: sapl-net-dev - driver: bridge - -volumes: - onlyoffice_data: - onlyoffice_log: \ No newline at end of file + driver: bridge \ No newline at end of file diff --git a/sapl/settings.py b/sapl/settings.py index ee6a5f06b..8bb9e491e 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -304,7 +304,7 @@ SERVER_EMAIL = config('SERVER_EMAIL', cast=str, default='') EMAIL_RUNNING = None # OnlyOffice Document Server Configuration -ONLYOFFICE_URL = config('ONLYOFFICE_URL', default='http://localhost:8002') +ONLYOFFICE_URL = config('ONLYOFFICE_URL', default='https://onlyoffice.legisinc.com.br') ONLYOFFICE_JWT_SECRET = config('ONLYOFFICE_JWT_SECRET', default='') ONLYOFFICE_JWT_ENABLED = config('ONLYOFFICE_JWT_ENABLED', cast=bool, default=False)