Do you want to: Request troubleshooting assistance with setting up the document server behind Nginx reverse proxy and https.
Document Server version: 7.1.0-215 Community
Type of installation of the Document Server (docker, deb/rpm, exe): deb
OS: Ubuntu 22.04 LTS
Browser version: any
Onlyoffice-nuxeo integrator plugin version: 2.0.0. Built from from git repo.
Am not able to edit document through Nuxeo front end when using https. OnlyOffice convertor fails with:
(from /var/log/onlyoffice/documentserver/convertor/out.log)
[2022-06-06T15:58:57.298] [ERROR] nodeJS - error downloadFile:url=https://morgan
.example.com/nuxeo/nxfile/default/8d7fbc30-4587-4233-9efb-1279f467d55b/file:con
tent/can users.xlsx?token=805faaf5-cd2c-4642-b698-e08a28e5b4c9;attempt=1;code:un
defined;connect:undefined;(id=OGQ3ZmJjMzAtNDU4Ny00MjMzLTllZmItMTI3OWY0NjdkNTViX1
85LTA=)
Error: Error response: statusCode:401; headers:{“server”:“nginx”,“date”:“Mon, 06
Jun 2022 19:58:57 GMT”,“content-type”:“text/html;charset=UTF-8”,“transfer-encod
ing”:“chunked”,“connection”:“keep-alive”,“x-frame-options”:“SAMEORIGIN”,“referre
r-policy”:“strict-origin-when-cross-origin”,“x-ua-compatible”:“IE=10; IE=11”,“ca
che-control”:“private, max-age=0”,“x-content-type-options”:“nosniff”,“content-se
curity-policy”:“img-src data: blob: *; default-src blob: *; script-src ‘unsafe-i
nline’ ‘unsafe-eval’ data: *; style-src ‘unsafe-inline’ *; font-src data: *”,“x-
xss-protection”:“1; mode=block”,“expires”:“Mon, 06 Jun 2022 19:58:57 GMT”,“set-c
ookie”:[“JSESSIONID=AF7A5188FC20D45CF3C2B4265D073EF2.nuxeo; Path=/; Secure; Http
Only; SameSite=Lax”],“vary”:“accept-encoding”,“content-encoding”:“gzip”};
at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
at Request.emit (events.js:400:28)
at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modu
les/request/request.js:1059:10)
at ClientRequest.emit (events.js:400:28)
at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at TLSSocket.Readable.push (internal/streams/readable.js:204:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
The JSESSIOID in the logs matches the cookie value in the browser.
There are no errors and am able to edit the same document using http.
Am using the stock Nginx includes/ds-*.conf and http-common.conf files. The ds.conf is modified version of ds,conf.tmpl with cert values and block to cover Nuxeo.
Both applications are on the same box.
Is there some trick that I’m missing here?