Ok so I have fund where the error come from. And I have resolve without docker container ^^.
The problem com from the document server secret settings.
So, first I have edit the config.php like you said to authorize self-signed certificate.
Then I have change JWT settings in /etc/onlyoffice/documentserver/local.json , here is example how it look like :
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "my_secret"
},
"outbox": {
"string": "my_secret"
},
"session": {
"string": "my_secret"
}
“my_secret” value should be same as in Nextcloud connector settings and in the default.json. After edit local.json I just have restart document service like that :
supervisorctl restart all
After this modification everything works !!!