Onlyoffice Secret Key Issue

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

  1. In docker-compose.yml change the line - JWT_HEADER=Authorization to - JWT_HEADER=AuthorizationJwt
  2. In Nextcloud’s config.php add this:
  'onlyoffice' =>
    array (
      "jwt_secret" => "yourSecret",
      "jwt_header" => "AuthorizationJwt"
  )
  1. Then just go to Onlyoffice settings in Nextcloud, set the Onlyoffice server’s addres, put in your secret and save

Solution for normal install

  1. In /etc/onlyoffice/documentserver/local.json change all "header": "Authorization", lines to "header": "AuthorizationJwt",
  2. In Nextcloud’s config.php add this:
  'onlyoffice' =>
    array (
      "jwt_secret" => "yourSecret",
      "jwt_header" => "AuthorizationJwt"
  )
  1. Then just go to Onlyoffice settings in Nextcloud, set the Onlyoffice server’s addres, put in your secret and save
1 Like