Try the fastest and simplest way to install ONLYOFFICE

Integrate Seafile CE with OnlyOffice CE Separate Subdomains

Integration questions/issues

Integrate Seafile CE with OnlyOffice CE Separate Subdomains

Postby Merc » Wed Dec 20, 2017 8:13 am

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
Merc
 
Posts: 52
Joined: Tue Jun 09, 2015 2:29 am

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby Maxim » Thu Dec 21, 2017 7:12 am

Hello Merc!
try this URL to Document Server's API - /ds-vpath/web-apps/apps/api/documents/api.js
Maxim
 
Posts: 1744
Joined: Tue Oct 11, 2016 2:34 pm

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby Merc » Fri Dec 22, 2017 1:43 am

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!
Merc
 
Posts: 52
Joined: Tue Jun 09, 2015 2:29 am

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby Maxim » Fri Dec 22, 2017 10:34 am

Hello Merc!
Specify please Document Server version.
Maxim
 
Posts: 1744
Joined: Tue Oct 11, 2016 2:34 pm

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby Merc » Tue Dec 26, 2017 8:54 pm

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
Merc
 
Posts: 52
Joined: Tue Jun 09, 2015 2:29 am

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby Merc » Wed Dec 27, 2017 10:22 pm

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
Merc
 
Posts: 52
Joined: Tue Jun 09, 2015 2:29 am

Re: Integrate Seafile CE with OnlyOffice CE Separate Subdoma

Postby christophdb » Wed Jan 17, 2018 8:58 pm

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
christophdb
 
Posts: 1
Joined: Wed Jan 17, 2018 8:55 pm


Return to API

Who is online

Users browsing this forum: No registered users and 3 guests

cron