Document server for onlyoffice
Перейти к файлу
chadek 2b66cae4af
Bump nextcloud version (#340)
Signed-off-by: chadek <32199566+chadek@users.noreply.github.com>
2024-10-30 13:25:06 +01:00
.github/workflows Fix security issue (#324) 2024-04-11 11:33:39 +02:00
appinfo Bump nextcloud version (#340) 2024-10-30 13:25:06 +01:00
img add app icon and screenshots 2020-01-24 14:42:44 +01:00
js add detection and proper error message for musl based systems 2020-01-22 15:21:51 +01:00
lib fix x2t librairie issue #195 (#334) 2024-09-04 11:46:24 +02:00
screenshots add app icon and screenshots 2020-01-24 14:42:44 +01:00
tests format php 2021-02-16 19:38:18 +01:00
.gitignore Fix binary mismatch of docker container with rpm 2022-11-02 13:17:13 -05:00
.nextcloudignore krankerl config 2021-07-06 14:43:15 +02:00
Makefile Fix data loss issue (#320) 2024-04-07 13:40:33 +02:00
README.md Add update seccion to readme 2024-04-11 18:18:18 +02:00
krankerl.toml krankerl config 2021-07-06 14:43:15 +02:00

README.md

Community Documentserver

This is a easy way to get ONLYOFFICE integrated in Nextcloud. It is developed purely as a way for home users to not have to deal with docker images, reverse proxies and other things. It is not aimed at anything beyond that - if you need it to scale, use the docker image, packages or other methods, those will always be faster and more scalable.

The work on this was sponsored by Nextcloud GmbH for the private home user community. There is no commercial support available and there will not be.

Requirements

The community document server only supports running on x86-64 Linux servers using glibc based distributions. To get it running, you also need to install the ONLYOFFICE app.

We'd like to also support ARM devices like the Raspberry Pi in the future.

Configuring OnlyOffice

The community documentserver will automatically configure itself if no other document server is configured in the onlyoffice settings ("Document Editing Service address" is empty). All other "Server settings" should be left empty.

If autoconfiguration fails for any reason, you may manually enter the url. Log in as the admin and go to Settings > ONLYOFFICE. For the ONLYOFFICE Docs address, enter the value in the format of https://<nextcloud_server>/apps/documentserver_community/.

Update

After community document server update and any related app (OnlyOffice app for example), you should clear your browser cache to get newer version running.

Adding fonts

You can add custom fonts to the document server using the following occ commands

  • Add font by path occ documentserver:fonts --add /usr/share/fonts/myfont.ttf
  • List added fonts occ documentserver:fonts
  • Remove an added font occ documentserver:fonts --remove myfont.ttf

Self signed certificates

If your nextcloud is using a self signed certificate for https, you'll need to import the certificate into nextcloud's certificate store to make the documentserver work.

occ security:certificates:import /path/to/certificate.crt

SELinux

If you're using SELinux you'll need to configure it to allow executing binaries from the documentserver_community/3rdparty directory, for example:

semanage fcontext -a -t httpd_sys_script_exec_t '/var/www/html/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver(/.*)?'
restorecon -R -v /var/www/html/nextcloud

Specific commands and paths will differ based on your specific setup.

Setup from git

When installing from git make, curl, rpm2cpio, and cpio are required.

  • clone the repo into the Nextcloud app directory
  • run make in the app folder to download the 3rdparty components
  • Enable the app

OnlyOffice components

This app includes components from OnlyOffice to do a large part of the work. While building the app, these components are copied over from the official OnlyOffice documentserver docker image (see Makefile). The source for this can be found at the OnlyOffice github, primarily the web-apps, sdkjs and core repositories.

These components are licenced under AGPL-3.0 with their copyright belonging to the OnlyOffice team.