I’ve found out that the discord app and the onlyoffice-documentserver are not configured properly out of the box with this, which was really, like really hard to find. The solution is basically the same, just with different header names. IDK why they have it like that when they know it’s not working…
Please mark something as solution so people can find it easily.
Solution for docker
- In
docker-compose.ymlchange the line- JWT_HEADER=Authorizationto- JWT_HEADER=AuthorizationJwt - In Nextcloud’s
config.phpadd this:
'onlyoffice' =>
array (
"jwt_secret" => "yourSecret",
"jwt_header" => "AuthorizationJwt"
)
- Then just go to Onlyoffice settings in Nextcloud, set the Onlyoffice server’s addres, put in your secret and save
Solution for normal install
- In
/etc/onlyoffice/documentserver/local.jsonchange all"header": "Authorization",lines to"header": "AuthorizationJwt", - In Nextcloud’s
config.phpadd this:
'onlyoffice' =>
array (
"jwt_secret" => "yourSecret",
"jwt_header" => "AuthorizationJwt"
)
- Then just go to Onlyoffice settings in Nextcloud, set the Onlyoffice server’s addres, put in your secret and save