Onlyoffice in docker+reverse proxy cant open documents

I have this scenery:

  1. Apache running as reverse proxy in server#1, listening 80 and 443,
  2. Apache running as http server in server #2 with a NC24 instance listening in port 80 and docker with latest onlyoffice doc server listening in port 8080->80 inside the docker, both http,

Test from any web browser: works ok (NC instance) works ok (Onlyoffice shows the welcome page)

My NC config file has:

‘trusted_proxies’ =>
array (
0 => ‘’,
‘trusted_domains’ =>
array (
0 => ‘’,
1 => ‘’,
‘onlyoffice’ => array ( ‘verify_peer_off’ =>TRUE, ),
‘overwriteprotocol’ => ‘https’

The OnlyOffice app inside NC has these settings (no errors saving them):

Onlyoffice Doc address:
Onlyoffice Doc address for internal request from the server:
Server address for internal request from Onlyoffice docs:

When I create a document or open a old one the editor appears in the browser and after that a popup with this message:

‘unknow error, press ok to return to document list’

I can’t see any errors in /app/onlyoffice/documentserver/logs

Any idea?