Page 1 of 1

Integrate Seafile CE with OnlyOffice CE Separate Subdomains

PostPosted: Wed Dec 20, 2017 8:13 am
by Merc
I have a Seafile CE 6.2.3 server that I want to access my OnlyOffice CE Document Server. Both servers reside in their own (different) domains, have public access to the Internet, and utilize signed SSL certificates. Both servers are fully functional and seem to work as advertised. The OnlyOffice CE server is Docker-based, runs on Ubuntu 16.04.3, and includes both Community Server and Document Server (no Mail server). OnlyOffice is up-to-date at the time of this post. Seafile CE server is similarly based on Ubuntu 16.04.3, Nginx, and is also up-to-date.

The Seafile manual specifies a simple configuration change to access an OnlyOffice Document Server in a subdomain primarily by adding this API call (and a few others) to one of its configuration files:

ONLYOFFICE_APIJS_URL = 'http{s}://{your OnlyOffice server's domain or IP}/web-apps/apps/api/documents/api.js'

I believe the string is derived from OnlyOffice documentation found here or similar:

https://api.onlyoffice.com/editors

When I try to open a document in Seafile the resultant page opens to a white screen. No error is reported, however, just a blank page results. This is true of all the typical MS Office document formats using several different browsers (Firefox, Chromium, Safari). The result is always a white, blank, screen.

The Seafile manual further states that a test of the OnlyOffice Document server is the URL:

http{s}://{your Seafile Server's domain or IP}/welcome

which should result in a "Document Server is running" info page. When I submit that string with my server information I get:

"Sorry, the resource cannot be found."

Is the URL given above for ONLYOFFICE_APIJS_URL correct in this context? Can Seafile use OnlyOffice's Document Server if it exists on another host, in a separate domain, running with a Community Server? What about authentication to the OnlyOffice server from Seafile?

Thanks for your help.

References
https://manual.seafile.com/deploy/only_office.html

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Thu Dec 21, 2017 7:12 am
by Maxim
Hello Merc!
try this URL to Document Server's API - /ds-vpath/web-apps/apps/api/documents/api.js

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Fri Dec 22, 2017 1:43 am
by Merc
Hello Maxim!

ONLYOFFICE_APIJS_URL = 'https://oo.mydomain.com/ds-vpath/web-apps/apps/api/documents/api.js'

results in white page. No error, just blank page.

Thanks!

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Fri Dec 22, 2017 10:34 am
by Maxim
Hello Merc!
Specify please Document Server version.

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Tue Dec 26, 2017 8:54 pm
by Merc
Ubuntu 16.04.3 LTS
Docker version 17.05.0-ce, build 89658be
onlyoffice/communityserver:9.5.3.549
onlyoffice/documentserver:5.0.6.14
mysql:5.5

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Wed Dec 27, 2017 10:22 pm
by Merc
Fundamentally, shouldn't the Seafile server be sending the OnlyOffice server something akin to a Secret Key to authenticate the session?

In addition, is this an application of the OnlyOffice Integration server version? Can this work with the OnlyOffice CE version?

-Thanks

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

PostPosted: Wed Jan 17, 2018 8:58 pm
by christophdb
Hi merc,

I made a youtube video about how to integrate onlyoffice with seafile:
https://www.youtube.com/watch?v=vu5KO1y ... 8&index=11

Even if you don't use the docker image and install onlyoffice document server via command line it is still the same procedure.
- Install OnlyOffice
- check if the documentserver is ready
- make the documentserver available via subdomain or subfolder
- active the onlyoffice connection in seafile.

Best regards
Christoph