Problemi with DocumentServer and connection with Nextcloud 31.0.2

Good evening,
Type of installation of the Document Server : Docker.
DMS (platform) version: NextCloud 31.0.2
OS: Ubuntu 24
Browser version: Chrome or Firefox

Additional information:
I Start with the first problem. I have into a v.m. a DocumentServer Onlyoffice , i create a yml for a docker:

  GNU nano 8.1                                                                          docker-compose.yml                                                                                    
version: '3'
services:
  onlyoffice:
    image: onlyoffice/documentserver:latest
    container_name: onlyoffice
    restart: always
    ports:
      - "80:80"
      - "443:443"
    environment:
      - JWT_ENABLED=true
      - JWT_SECRET=xxx
      - LETS_ENCRYPT_DOMAIN=xxxxx.xxxxx.it
      - LETS_ENCRYPT_MAIL=xxxxx@xxxxx.com
      - USE_UNAUTHORIZED_STORAGE=true
      - JWT_HEADER=AuthorizationJwt
    volumes:
      - ./data:/var/www/onlyoffice/Data
      - ./logs:/var/log/onlyoffice

the configuration for the local.json is:

{
  "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": "AuthorizationJwt",
          "inBody": false
        },
        "outbox": {
          "header": "AuthorizationJwt",
          "inBody": false
        }
      },
      "secret": {
        "inbox": {
          "string": "xxxxxx"
        },
        "outbox": {
          "string": "xxxxx"
        },
        "session": {
          "string": "xxxxxx"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },

So when i start from browser and i create a test sample with:
sudo docker exec 0a27f15525e7 sudo supervisorctl start ds:example

and i enter to the site in example from the button on the https page i think all is ok

But if i tried to click a document appears thie errors:

the errors i seen into the logs are:

[2025-03-25T18:06:13.077] [ERROR] [localhost] [10.XXX.XXX.XXXnew.docx1742925970230] [uid-1] nodeJS - error downloadFile:url=https://xxxxx.xxxxxxx.xx/example/download?fileName=new.docx&useraddress=10.XXX.XXX.XXX;attempt=3;code:DEPTH_ZERO_SELF_SIGNED_CERT;connect:null Error: self signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
    at TLSSocket.emit (node:events:527:28)
    at TLSSocket._finishInit (node:_tls_wrap:946:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12)

It is strange cause the https is secure and create from letscrypt…anyone can help me?
thanks

Hello @nevermind19,
Please find default.json config (/etc/onlyoffice/documentserver - in Docker container) and set rejectUnauthorized parameter to false, run supervisorctl restart all command to apply the changes.

i tried this,my part of default.json is this now:

                               "limits_image_size": 26214400,
                                "limits_image_download_timeout": {
                                        "connectionAndInactivity": "2m",
                                        "wholeCycle": "2m"
                                },
                                "callbackRequestTimeout": {
                                        "connectionAndInactivity": "10m",
                                        "wholeCycle": "10m"
                                },
                                "healthcheckfilepath": "../public/healthcheck.docx",
                                "savetimeoutdelay": 5000,
                                "edit_singleton": false,
                                "forgottenfiles": "forgotten",
                                "forgottenfilesname": "output",
                                "maxRequestChanges": 20000,
                                "openProtectedFile": true,
                                "isAnonymousSupport": true,
                                "editorDataStorage": "editorDataMemory",
                                "editorStatStorage": "",
                                "assemblyFormatAsOrigin": true,
                                "newFileTemplate" : "../../document-templates/new",
                                "downloadFileAllowExt": ["pdf", "xlsx"],
                                "tokenRequiredParams": true,
                                "forceSaveUsingButtonWithoutChanges": false
                        },
                        "requestDefaults": {
                                "headers": {
                                        "User-Agent": "Node.js/6.13",
                                        "Connection": "Keep-Alive"
                                },
                                "gzip": true,
                                "rejectUnauthorized": false
                        },
                        "autoAssembly": {
                                "enable": false,
                                "interval": "5m",
                                "step": "1m"
                        },
                        "utils": {
                                "utils_common_fontdir": "null",
                                "utils_fonts_search_patterns": "*.ttf;*.ttc;*.otf",
                                "limits_image_types_upload": "jpg;jpeg;jpe;png;gif;bmp;svg;tiff;tif"
                        },
                        "sql": {
                                "type": "postgres",
                                "tableChanges": "doc_changes",
                                "tableResult": "task_result",
                                "dbHost": "localhost",
                                "dbPort": 5432,
                                "dbName": "onlyoffice",
                                "dbUser": "onlyoffice",
                                "dbPass": "onlyoffice",
                                "charset": "utf8",
                                "connectionlimit": 10,
                                "max_allowed_packet": 1048575,
                                "pgPoolExtraOptions": {
                                        "idleTimeoutMillis": 30000,
                                        "maxLifetimeSeconds ": 60000,
                                        "statement_timeout ": 60000,
                                        "query_timeout  ": 60000,
                                        "connectionTimeoutMillis": 60000
                                },
                                "damengExtraOptions": {

i restart with supervisorctl restart all…but same problem

So i see better and yes I have always the same error from the browser , but now from the log of converter “out.log” i have this eorr:
[2025-03-27T20:48:23.960] [ERROR] [localhost] [151.XX.XX.XXnew.docx1743108229864] [uid-1] nodeJS - error downloadFile:url=https://xxxx.xxxx.it/example/download?fileName=new.docx&useraddress=151.XX.XX.XX;attempt=3;code:null;connect:null Error: Error response: statusCode:404; headers:{“server”:“nginx”,“date”:“Thu, 27 Mar 2025 20:48:23 GMT”,“content-type”:“text/html”,“transfer-encoding”:“chunked”,“connection”:“keep-alive”,“content-encoding”:“gzip”};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Please make sure that you are using the latest version of the Document Server (8.3.2), the latest tag does not guarantee that the version that you are using is actually the latest, you can check the version by clicking here:

i’m sorry but i can’t arrive into that part…when i have this error


i can’t to click where you tell to me…because exit from the editor.

i use docker image with latest . i tried update my docker-compose like the github https://github.com/ONLYOFFICE/Docker-DocumentServer/ with this :

services:
  onlyoffice-documentserver:
    build:
      context: .
    container_name: onlyoffice-documentserver
    depends_on:
      - onlyoffice-postgresql
      - onlyoffice-rabbitmq
    environment:
      - DB_TYPE=postgres
      - DB_HOST=onlyoffice-postgresql
      - DB_PORT=5432
      - DB_NAME=onlyoffice
      - DB_USER=onlyoffice
      - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
      - LETS_ENCRYPT_DOMAIN=xx.xx.it
      - LETS_ENCRYPT_MAIL=xx.xx@xx.com
      - USE_UNAUTHORIZED_STORAGE=true
      # Uncomment strings below to enable the JSON Web Token validation.
      - JWT_ENABLED=true
      - JWT_SECRET=xxxxxx
      - JWT_HEADER=AuthorizationJwt
      - JWT_IN_BODY=true
    ports:
      - '80:80'
      - '443:443'
    stdin_open: true
    restart: always
    stop_grace_period: 60s
    volumes:
       - /var/www/onlyoffice/Data
       - /var/log/onlyoffice
       - /var/lib/onlyoffice/documentserver/App_Data/cache/files
       - /var/www/onlyoffice/documentserver-example/public/files
       - /usr/share/fonts

  onlyoffice-rabbitmq:
    container_name: onlyoffice-rabbitmq
    image: rabbitmq
    restart: always
    expose:
      - '5672'

  onlyoffice-postgresql:
    container_name: onlyoffice-postgresql
    image: postgres:12
    environment:
      - POSTGRES_DB=onlyoffice
      - POSTGRES_USER=onlyoffice
      - POSTGRES_HOST_AUTH_METHOD=trust
    restart: always
    expose:
      - '5432'
    volumes:
      - postgresql_data:/var/lib/postgresql

volumes:
  postgresql_data:

from docker i have this messages:

onlyoffice-documentserver    | ds:converter: stopped
onlyoffice-documentserver    | ds:converter: started
onlyoffice-documentserver    |  * Reloading nginx configuration nginx
onlyoffice-documentserver    |    ...done.
onlyoffice-documentserver    | Installing plugins, please wait...Done
onlyoffice-documentserver    |  * Reloading nginx configuration nginx
onlyoffice-documentserver    |    ...done.
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/converter/err.log <==
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/converter/out.log <==
onlyoffice-documentserver    |     at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
onlyoffice-documentserver    |     at ClientRequest.emit (node:events:527:28)
onlyoffice-documentserver    |     at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
onlyoffice-documentserver    |     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
onlyoffice-documentserver    |     at TLSSocket.socketOnData (node:_http_client:494:22)
onlyoffice-documentserver    |     at TLSSocket.emit (node:events:527:28)
onlyoffice-documentserver    |     at addChunk (node:internal/streams/readable:315:12)
onlyoffice-documentserver    |     at readableAddChunk (node:internal/streams/readable:289:9)
onlyoffice-documentserver    |     at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
onlyoffice-documentserver    |     at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/docservice/err.log <==
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
onlyoffice-documentserver    | [2025-03-31T21:02:59.587] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
onlyoffice-documentserver    | [2025-03-31T21:02:59.591] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
onlyoffice-documentserver    | [2025-03-31T21:02:59.592] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
onlyoffice-documentserver    | [2025-03-31T21:02:59.747] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.3.2. Build: 19
onlyoffice-documentserver    | [2025-03-31T21:03:34.571] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
onlyoffice-documentserver    | [2025-03-31T21:03:34.575] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
onlyoffice-documentserver    | [2025-03-31T21:03:34.575] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
onlyoffice-documentserver    | [2025-03-31T21:03:34.690] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.3.2. Build: 19
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/nginx.error.log <==
onlyoffice-documentserver    | 2025/03/31 21:04:27 [error] 960#960: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 151.38.59.91, server: , request: "GET /example/ HTTP/2.0", upstream: "http://127.0.0.1:3000/", host: "xxx.xxxx.it", referrer: "https://xxx.xxx.it/welcome/"
onlyoffice-documentserver    | 2025/03/31 21:04:27 [error] 960#960: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 151.38.59.91, server: , request: "GET /example/ HTTP/2.0", upstream: "http://127.0.0.1:3000/", host: "xxx.xxx.it", referrer: "https://xxx.xxx.it/welcome/"
onlyoffice-documentserver    |
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
onlyoffice-documentserver    | [2025-03-31T21:05:32.721] [ERROR] [localhost] [151.38.59.91new.docx1743455131407] [uid-1] nodeJS - postData error: url = https://xxx.xxx.it/example/track?filename=new.docx&useraddress=151.38.59.91;data = {"key":"151.38.59.91new.docx1743455131407","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNTEuMzguNTkuOTFuZXcuZG9jeDE3NDM0NTUxMzE0MDciLCJzdGF0dXMiOjEsInVzZXJzIjpbInVpZC0xIl0sImFjdGlvbnMiOlt7InR5cGUiOjEsInVzZXJpZCI6InVpZC0xIn1dLCJpYXQiOjE3NDM0NTUxMzIsImV4cCI6MTc0MzQ1NTQzMn0.qNlaAKF_hJCDV7R8Eza6zvXXT5FP_X3GbliRnNzCifs"} Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Mon, 31 Mar 2025 21:05:32 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","content-encoding":"gzip"}; body:
onlyoffice-documentserver    | <html>
onlyoffice-documentserver    | <head><title>404 Not Found</title></head>
onlyoffice-documentserver    | <body>
onlyoffice-documentserver    | <center><h1>404 Not Found</h1></center>
onlyoffice-documentserver    | <hr><center>nginx</center>
onlyoffice-documentserver    | </body>
onlyoffice-documentserver    | </html>
onlyoffice-documentserver    |
onlyoffice-documentserver    |     at Request._callback (/snapshot/server/Common/sources/utils.js)
onlyoffice-documentserver    |     at Request.callback (/snapshot/server/Common/node_modules/request/request.js:185:22)
onlyoffice-documentserver    |     at Request.emit (node:events:527:28)
onlyoffice-documentserver    |     at Request.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1161:10)
onlyoffice-documentserver    |     at Request.emit (node:events:527:28)
onlyoffice-documentserver    |     at Gunzip.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1083:12)
onlyoffice-documentserver    |     at Object.onceWrapper (node:events:641:28)
onlyoffice-documentserver    |     at Gunzip.emit (node:events:527:28)
onlyoffice-documentserver    |     at endReadableNT (node:internal/streams/readable:1345:12)
onlyoffice-documentserver    |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
onlyoffice-documentserver    | ==> /var/log/onlyoffice/documentserver/converter/out.log <==
onlyoffice-documentserver    | [2025-03-31T21:05:32.723] [ERROR] [localhost] [151.38.59.91new.docx1743455131407] [uid-1] nodeJS - error downloadFile:url=https://xxx.xxx.it/example/download?fileName=new.docx&useraddress=151.38.59.91;attempt=1;code:null;connect:null Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Mon, 31 Mar 2025 21:05:32 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","content-encoding":"gzip"};
onlyoffice-documentserver    |     at Request.fResponse (/snapshot/server/Common/sources/utils.js)
onlyoffice-documentserver    |     at Request.emit (node:events:527:28)
onlyoffice-documentserver    |     at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
onlyoffice-documentserver    |     at ClientRequest.emit (node:events:527:28)
onlyoffice-documentserver    |     at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
onlyoffice-documentserver    |     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
onlyoffice-documentserver    |     at TLSSocket.socketOnData (node:_http_client:494:22)
onlyoffice-documentserver    |     at TLSSocket.emit (node:events:527:28)
onlyoffice-documentserver    |     at addChunk (node:internal/streams/readable:315:12)
onlyoffice-documentserver    |     at readableAddChunk (node:internal/streams/readable:289:9)
onlyoffice-documentserver    |     at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
onlyoffice-documentserver    |     at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)



Please open the following config: /etc/onlyoffice/documentserver-example/local.json (in the container) and make sure that the secret provided there is the same there as in local.json on the side of Document Server

Also, please provide the following command’s output: supervisorctl status all(in the container)

Yes i confirm , i have the same secret and authorizationHeader , into docker in /etc/onlyoffice/documentserver-example/local.json and in /etc/onlyoffice/documentserver/local.json …
The problem is appear only after i use the https with letscrypt certificate. In http all worked…but i need the https cause nextcloud is also in https and it can’t work mixed.
So, after i try to use in docker-compose.yml the option LETS_ENCRYPT_DOMAIN the site “welcome” works ,the ssl certificate works, but if i try to use the example not works and send to me the errors i show you.

and this is the result of

supervisorctl status all

root@4618f69e73bd:/# supervisorctl status all
ds:converter                     RUNNING   pid 877, uptime 0:05:51
ds:docservice                    RUNNING   pid 866, uptime 0:05:53
ds:example                       RUNNING   pid 798, uptime 0:06:05
ds:metrics                       STOPPED   Not started

Please provide the following configs:
local.json - full (/etc/onlyoffice/) and ds.conf (/etc/onlyoffice/documentserver/nginx)
We need to make sure that the securelink and secretstring coincide

Received. Additionally, provide the following:

  1. ds-docservice.conf (/etc/nginx/includes - in the container)
  2. Screenshot of Onlyoffice Connector’s settings (do you get any errors when you save the settings?)

Here the /etc/nginx/includes/ds-docservice.conf

welcome page
rewrite ^/$ $the_scheme://$the_host$the_prefix/welcome/ redirect;

#script caching protection
rewrite ^(?<cache>\/web-apps\/apps\/(?!api\/).*)$ $the_scheme://$the_host$the_prefix/8.3.2-$cache_tag$cache redirect;

#disable caching for api.js
location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(web-apps\/apps\/api\/documents\/api\.js)$ {
  expires -1;
gzip_static on;
  alias  /var/www/onlyoffice/documentserver/$2;
}

location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(document_editor_service_worker.js)$ {
  expires 365d;
gzip_static on;
  alias  /var/www/onlyoffice/documentserver/sdkjs/common/serviceworker/$2;
}

#suppress logging the unsupported locale error in web-apps
location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(web-apps)(\/.*\.json)$ {
  expires 365d;
  error_log /dev/null crit;
gzip_static on;
  alias /var/www/onlyoffice/documentserver/$2$3;
}

#suppress logging the unsupported locale error in plugins
location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(sdkjs-plugins)(\/.*\.json)$ {
  expires 365d;
  error_log /dev/null crit;
gzip_static on;
  alias /var/www/onlyoffice/documentserver/$2$3;
}

location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(web-apps|sdkjs|sdkjs-plugins|fonts|dictionaries)(\/.*)$ {
  expires 365d;
gzip_static on;
  alias /var/www/onlyoffice/documentserver/$2$3;
}

location ~* ^(\/cache\/files.*)(\/.*) {
  alias /var/lib/onlyoffice/documentserver/App_Data$1;
  add_header Content-Disposition "attachment; filename*=UTF-8''$arg_filename";

  secure_link $arg_md5,$arg_expires;
  secure_link_md5 "$secure_link_expires$uri$secure_link_secret";

  if ($secure_link = "") {
    return 403;
  }

  if ($secure_link = "0") {
    return 410;
  }
}

# Allow "/internal" interface only from 127.0.0.1
# Don't comment out the section below for the security reason!
 location ~* ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(internal)(\/.*)$ {
  allow 127.0.0.1;
  deny all;
  proxy_pass http://docservice/$2$3;
}

# Allow "/info" interface only from 127.0.0.1 by default
# Comment out lines allow 127.0.0.1; and deny all; 
# of below section to turn on the info page
location ~* ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\w]+)?\/(info)(\/.*)$ {
  allow 127.0.0.1;
  deny all;
  proxy_pass http://docservice/$2$3;
}

location / {
  proxy_pass http://docservice;
}

location ~ ^/([\d]+\.[\d]+\.[\d]+[\.|-][\w]+)/(?<path>.*)$ {
  proxy_pass http://docservice/$path$is_args$args;
  proxy_http_version 1.1;
}

Yes i have this error in nextcloud if i try to connect with onlyoffice

anyway i thinked if i have problem with onlyoffice document server i have also the problem into nextcloud connector

Please describe in detail the steps that you take to switch to https (as detailed as possible, every command)
Are Nextcloud and Onlyoffice Docs installed on different machines?
Additionally, provide the screenshot of docker ps command’s output
What is the address by which you are accessing Document Server Example? Please note, that if you access Integrated Example by localhost (rather than by the machine’s IP address), the documents won’t open

Here the screenshot:

In detail i have one Proxmox server with 2 V.M.The Proxmox server is fisically into other city in datacenter ,so i’m not connect into onlyoffice documentserver from localhost. I have focalized into onlyoffice server cause i think the problem is from there…but anyway i tell you my configurations.

NEXTCLOUD:
In one V.M. is installed nextcloud. Is installed with apache2 , so i only downloaded nextcloud from site, put into /var/www/nextcloud and managed the connection with ssl with letscrypt , and it work and is ok.
the config.php is:

<?php
$CONFIG = array (
  'maintenance_window_start' => 1,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'default_phone_region' => 'IT',
  'instanceid' => 'ocsor0hd4i9z',
  'passwordsalt' => 'ajWUrklwJVjiITKJE6arVyzcxxxvR6',
  'secret' => '3NpMnsnozY2/X+vSsE/S+mnWfQV6ENwRz5+jY0aB3ylIgQ/u',
  'trusted_domains' => 
  array (
    0 => 'next.xxxx.it',
    1 => '127.0.0.1',
    2 => 'localhost',
    3 => 'xxxx.xxx.it',
  ),
  'trusted_proxies' => 
  array (
    0 => '127.0.0.1',
  ),
  'datadirectory' => '/next/data',
  'dbtype' => 'mysql',
  'version' => '31.0.2.1',
  'overwrite.cli.url' => 'https://next.xxx.it',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxx',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'maintenance' => false,
  'forbidden_filename_basenames' => 
  array (
    0 => 'con',
    1 => 'prn',
    2 => 'aux',
    3 => 'nul',
    4 => 'com0',
    5 => 'com1',
    6 => 'com2',
    7 => 'com3',
    8 => 'com4',
    9 => 'com5',
    10 => 'com6',
    11 => 'com7',
    12 => 'com8',
    13 => 'com9',
    14 => 'com¹',
    15 => 'com²',
    16 => 'com³',
    17 => 'lpt0',
    18 => 'lpt1',
    19 => 'lpt2',
    20 => 'lpt3',
    21 => 'lpt4',
    22 => 'lpt5',
    23 => 'lpt6',
    24 => 'lpt7',
    25 => 'lpt8',
    26 => 'lpt9',
    27 => 'lpt¹',
    28 => 'lpt²',
    29 => 'lpt³',
  ),
  'forbidden_filename_characters' => 
  array (
    0 => '<',
    1 => '>',
    2 => ':',
    3 => '"',
    4 => '|',
    5 => '?',
    6 => '*',
    7 => '\\',
    8 => '/',
  ),
  'forbidden_filename_extensions' => 
  array (
    0 => ' ',
    1 => '.',
    2 => '.filepart',
    3 => '.part',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.xxxx.it',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '25',
  'mail_smtpauth' => true,
  'mail_from_address' => 'assistenza',
  'mail_domain' => 'xxx.it',
  'mail_smtpname' => 'assistenza@xxx.it',
  'mail_smtppassword' => 'xxxx',
  'theme' => '',
  'loglevel' => 2,
  'log_rotate_size' => 104857600,
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
    'jwt_secret' => '6p9J7JzyCabipsYb4EIorDk89EhWCCEv',
    'jwt_header' => 'AuthorizationJwt',
  ),
  'app_install_overwrite' => 
  array (
    0 => 'apporder',
  ),
);

ONLYOFFICE:
The other is an CT machine into proxmox in the same network and is for onlyoffice i use Ubuntu version 24.10 without GUI. So i installed docker.io and docker-compose with apt , i downloaded the project from git for docker-documentserver GitHub - ONLYOFFICE/Docker-DocumentServer: ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time., i used the docker-compose.yml and for works with https i only added to the yml this strings:

   - LETS_ENCRYPT_DOMAIN=xx.xx.it
  - LETS_ENCRYPT_MAIL=xx.xx@xx.com

and i added also this:

  - USE_UNAUTHORIZED_STORAGE=true

so the docker-compose now is:

services:
  onlyoffice-documentserver:
    build:
      context: .
    container_name: onlyoffice-documentserver
    depends_on:
      - onlyoffice-postgresql
      - onlyoffice-rabbitmq
    environment:
      - DB_TYPE=postgres
      - DB_HOST=onlyoffice-postgresql
      - DB_PORT=5432
      - DB_NAME=onlyoffice
      - DB_USER=onlyoffice
      - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
      - LETS_ENCRYPT_DOMAIN=xx.xx.it
      - LETS_ENCRYPT_MAIL=xx.xx@xx.com
      - USE_UNAUTHORIZED_STORAGE=true
      # Uncomment strings below to enable the JSON Web Token validation.
      - JWT_ENABLED=true
      - JWT_SECRET=6p9J7JzyCabipsYb4EIorDk89EhWCCEv
      - JWT_HEADER=AuthorizationJwt
      - JWT_IN_BODY=true
    ports:
      - '80:80'
      - '443:443'
    stdin_open: true
    restart: always
    stop_grace_period: 60s
    volumes:
       - /var/www/onlyoffice/Data
       - /var/log/onlyoffice
       - /var/lib/onlyoffice/documentserver/App_Data/cache/files
       - /var/www/onlyoffice/documentserver-example/public/files
       - /usr/share/fonts

  onlyoffice-rabbitmq:
    container_name: onlyoffice-rabbitmq
    image: rabbitmq
    restart: always
    expose:
      - '5672'

  onlyoffice-postgresql:
    container_name: onlyoffice-postgresql
    image: postgres:12
    environment:
      - POSTGRES_DB=onlyoffice
      - POSTGRES_USER=onlyoffice
      - POSTGRES_HOST_AUTH_METHOD=trust
    restart: always
    expose:
      - '5432'
    volumes:
      - postgresql_data:/var/lib/postgresql

volumes:
  postgresql_data:

After i appurate nextcloud works , i would like to make to work onlyoffice Document-server too.

Into onlyoffice server i configure the /etc/hosts , into this i add the IP number of the server and the name of the site is delared into letscrypt domain.
i started the docker with

docker-compose -d

i understand if the ssl works with a connection from outside into the site i have dedicated for onlyoffice server , so i see all works .
After, i like try to test the server with the command i have in the site page , so into the CT machine i started the example with:

sudo docker exec 4618f69e73bd sudo supervisorctl start ds:example

it respond with:

ds:example: started

so i go to the site in https://xxx.xxxx.it/example and all works cause i see the “ONLYOFFICE Document Editors – Welcome!”

but when i try to click, for example Document i have the problem i describe with the screenshot i put here the 31 March

Hello there,
using github and building the service all by yourself is not suitable in my opinion. You should switch back to the official docker-image onlyoffice/documentserver:latest and show us only:

  • your docker-compose file,
  • your connector-app config and nextcloud-compose file or config.php from nextcloud, and
  • your proxy configuration for the sites, if you use any

People often have minor configuration problems which can be resolved once people with experience can have a look at that. Be aware to redact sensible data where needed.
Since you are using docker, you can easily just add another container with the official image and let the other one be.

Usually you will configure everything from within your compose files. You never edit anything inside the container unless the official documentation recommends that, which is very rare.

EDIT:
I connected with your OO-example to test it. The connection is lost when the document is about to open and the connection switches to websocket (wss). Seems to me to be proxy/nginx related.

@nevermind19 I join what has been said above. Please try using onlyoffice/documentserver:latest image and check if the example works in that case (you can also try installing following this official guide for Docker - Installing ONLYOFFICE Docs for Docker on a local server). Also, provide the requested data, especially the proxy configuration if you’re using a proxy
If the issue is reproduced on the fresh installation, provide full contents of the logs folder (/var/log/onlyoffice/documentserver in the container as file)