It’s been three days I cannot get solved the problem with onlyoffice connector to Nextcloud, Googling, reading forums, chat AI did not help either.
The setup is Debian 12 standard apt installed Nextcloud and onlyoffice-documentserver 9.2.1-8.
Nextcloud is on same machine Apache port 80,443, Onlyoffice on Nginx port 8443. Everything worked till onlyoffice update some month ago.
After enabling jwt, this is the error I am getting:
[2025-12-29T22:21:30.016] [ERROR] [localhost] [check_2100824879] [userId] nodeJS - error downloadFile:url=https://my-cloud-server-address/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ESFOUC4kPUh5QmD93hp38Z1XQXW4K6yizyzX2AIZGmE;attempt=3;code:ERR_BAD_REQUEST;connect:undefined AxiosError: Request failed with status code 403
in config.php i added
‘jwt_secret’ => ‘9ef86b94dxxxxxxxxxxxdd80da5ba65e43’,
and in local.json
“jwt”: {
“enable”: true,
“secret”: “9ef86b94dxxxxxxxxxxxdd80da5ba65e43”,
},
Have experimented with “header”: “AuthorizationJWT”, did not help.
documentserver /healthcheck gives true
no issues with ssl.
tried ‘trusted_proxies’ with ‘127.0.0.1’, did not help
Really desperate. What am I missing here?