V.U
1
Hi everyone,Iâm having a persistent issue integrating Nextcloud with OnlyOffice Document Server, and Iâve exhausted most troubleshooting steps. Iâve tested this on three separate Nextcloud instances, all with the same result.EnvironmentNextcloud version: 33.0.1OnlyOffice Document Server (Docker)Web server: Apache (aaPanel)PHP: 8.3Internal networkURLs (sanitized)Nextcloud: https://files1.xxx.localâ ďż˝ / https://files2.xxx.localâ ďż˝OnlyOffice: https://onlyoffice.xxx.localâ ďż˝All services are reachable internally and resolve correctly.SSLUsing internal CA (xxxEnterpriseCA)Root + Intermediate certificates installed on:host systemOnlyOffice containerTest from container:curl -vk https://files2.xxx.local/status.phpâ ďż˝Result: OK (valid JSON returned)DNS / ConnectivityFrom OnlyOffice container:curl -vk https://files2.xxx.local/status.phpâ ďż˝Works correctly.Also added entries in /etc/hosts inside container.JWT ConfigurationOnlyOffice (local.json)âtokenâ: { âenableâ: { ârequestâ: { âinboxâ: true, âoutboxâ: true }, âbrowserâ: true }, âinboxâ: { âheaderâ: âAuthorizationâ, âinBodyâ: false }, âoutboxâ: { âheaderâ: âAuthorizationâ, âinBodyâ: false } }, âsecretâ: { âinboxâ: { âstringâ: âSuperSecret123â }, âoutboxâ: { âstringâ: âSuperSecret123â }, âbrowserâ: { âstringâ: âSuperSecret123â } }Container ENVJWT_ENABLED=trueJWT_SECRET=SuperSecret123JWT_HEADER=AuthorizationJWT_IN_BODY=falseNextcloudocc config:app:set onlyoffice jwt_secret --value=âSuperSecret123âocc config:app:set onlyoffice jwt_header --value=âAuthorizationâVerification:occ config:app:get onlyoffice jwt_secretReturns correct value.Apache (Nextcloud)Minimal config used for testing:SetEnvIf Authorization â(.\*)â HTTP_AUTHORIZATION=$1RequestHeader set Authorization â%{HTTP:Authorization}eâTestFrom OnlyOffice container:curl -vk https://files2.xxx.local/index.php/apps/onlyoffice/emptyâ ďż˝Response:{âmessageâ:âAccess deniedâ}Nextcloud LogsError:Error occurred in the document service:Error while downloading the document file to be converted.Also:getConvertedUri on check errorObservationsNetwork connectivity OKSSL trustedDNS workingJWT secret identicalUsing header (inBody=false)Same issue on 3 fresh Nextcloud installsQuestionWhy does Nextcloud still return:{âmessageâ:âAccess deniedâ}even when:JWT secret matchesAuthorization header is configuredOnlyOffice can reach NextcloudCould Apache (aaPanel) still be blocking or not forwarding the Authorization header properly?Any help would be greatly appreciated.