{"id":13495252,"url":"https://github.com/ONLYOFFICE/onlyoffice-owncloud","last_synced_at":"2025-03-28T16:32:03.056Z","repository":{"id":38455167,"uuid":"77228464","full_name":"ONLYOFFICE/onlyoffice-owncloud","owner":"ONLYOFFICE","description":"The app which enables the users to edit office documents from ownCloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to ownCloud","archived":false,"fork":false,"pushed_at":"2024-10-22T09:40:23.000Z","size":4772,"stargazers_count":300,"open_issues_count":26,"forks_count":91,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-10-23T13:55:59.790Z","etag":null,"topics":["integration","onlyoffice","owncloud"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ONLYOFFICE.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-23T13:52:40.000Z","updated_at":"2024-10-22T18:40:33.000Z","dependencies_parsed_at":"2023-10-16T22:30:11.981Z","dependency_job_id":"9382b888-14cd-4207-925e-868e47239d14","html_url":"https://github.com/ONLYOFFICE/onlyoffice-owncloud","commit_stats":null,"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2Fonlyoffice-owncloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2Fonlyoffice-owncloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2Fonlyoffice-owncloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2Fonlyoffice-owncloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONLYOFFICE","download_url":"https://codeload.github.com/ONLYOFFICE/onlyoffice-owncloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222395784,"owners_count":16977623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["integration","onlyoffice","owncloud"],"created_at":"2024-07-31T19:01:32.906Z","updated_at":"2025-03-28T16:32:03.015Z","avatar_url":"https://github.com/ONLYOFFICE.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ![onlyoffice icon](screenshots/icon.png) ONLYOFFICE app for ownCloud\n\nThis app allows users to edit office documents from [ownCloud](https://owncloud.com) using ONLYOFFICE Docs packaged as Document Server - [Community or Enterprise Edition](#onlyoffice-docs-editions).\n\n## Features\n\nThe app allows to:\n\n* Create and edit text documents, spreadsheets, and presentations.\n* Create and edit PDF forms.\n* Edit PDF files.\n* Share files with different permission types - viewing/editing, commenting, reviewing, filling forms. It's also possible to restrict downloading (in all editors) and modifying filters (in spreadshhets). Sharing via public link is also available. \n* Co-edit documents in real-time: use two co-editing modes (Fast and Strict), Track Changes, comments, and built-in chat. Co-editing is also available several federated ownCloud instances connected to one Document Server.\n* Work with documents, spreadsheets, and presentations within ownCloud Web. \n\nSupported formats:\n\n* For editing: DOCM, DOCX, DOTM, DOTX, PDF, EPUB, FB2, HTML, ODT, OTT, RTF, TXT, CSV, ODS, OTS, XLSM, XLSX, XLTM, XLTX, ODP, OTP, POTM, POTX, PPSM, PPSX, PPTM, PPTX.\n* For viewing only: DJVU, DOC, DOT, FODT, HTM, MHT, MHTML, STW, SXW, WPS, WPT, XML, XPS, ET, ETT, FODS, SXC, XLS, XLSB, XLT, DPS, DPT, FODP, POT, PPS, PPT, SXI.\n\nODT, ODS, and ODP is also available for instant conversion. After you enable the corresponding option in the admin settings, ODF-formatted documents are immediately converted in the editor and opened after you click on it.\n\n## Installing ONLYOFFICE Docs\n\nYou will need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from ownCloud and any end clients. ONLYOFFICE Document Server must also be able to POST to ownCloud directly.\n\nONLYOFFICE Document Server and ownCloud can be installed either on different computers, or on the same machine. If you use one machine, set up a custom port for Document Server as by default both ONLYOFFICE Document Server and ownCloud work on port 80.\n\nYou can install free Community version of ONLYOFFICE Docs or scalable Enterprise Edition with pro features.\n\nTo install free Community version, use [Docker](https://github.com/onlyoffice/Docker-DocumentServer) (recommended) or follow [these instructions](https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu.aspx) for Debian, Ubuntu, or derivatives.  \n\nTo install Enterprise Edition, follow instructions [here](https://helpcenter.onlyoffice.com/installation/docs-enterprise-index.aspx).\n\nCommunity Edition vs Enterprise Edition comparison can be found [here](#onlyoffice-docs-editions).\n\nTo use ONLYOFFICE behind a proxy, please refer to [this article](https://helpcenter.onlyoffice.com/installation/docs-community-proxy.aspx).\n\nYou can also use our **[Docker installation](https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud)** to install pre-configured Document Server (free version) and ownCloud with a couple of commands.\n\n## Installing ONLYOFFICE app for ownCloud\n\nThe ownCloud administrator can install the app from the in-built application market.\nFor that click the upper-left hamburger menu and select **Market**. After that find **ONLYOFFICE** in the list of available applications and install it.\n\nIf the server with the ownCloud installed does not have an Internet access, or if you need it for some other reason, the administrator can install the application manually: \n\n1. Go to the ownCloud server _apps/_ directory (or some other directory [used](https://doc.owncloud.org/server/admin_manual/installation/apps_management_installation.html#using-custom-app-directories)):\n\n    ```bash\n    cd apps/\n    ```\n\n2. Get the ONLYOFFICE app for ownCloud.\nThere are several ways to do that:\n\n    a. Download the latest signed version from the official store for [ownCloud](https://marketplace.owncloud.com/apps/onlyoffice).\n\n    b. Or you can download the latest signed version from the application [release page](https://github.com/ONLYOFFICE/onlyoffice-owncloud/releases) on GitHub.\n\n    c. Or you can clone the application source code and compile it yourself:\n    ```bash\n    git clone https://github.com/ONLYOFFICE/onlyoffice-owncloud.git onlyoffice\n    cd onlyoffice\n    git submodule update --init --recursive\n    ```\n\n    ownCloud does not work with unsigned applications giving an alert, so you will need to use either option **a** or **b** to get the application.\n\n3. Change the owner to update the application right from ownCloud web interface:\n\n    ```bash\n    chown -R www-data:www-data onlyoffice\n    ```\n\n4. In ownCloud open the `~/settings/admin?sectionid=apps\u0026category=disabled` page with _Not enabled_ apps by administrator and click _Enable_ for the **ONLYOFFICE** application.\n\n## Configuring ONLYOFFICE app for ownCloud\n\nIn ownCloud open the `~/settings/admin?sectionid=additional#onlyoffice` page with administrative settings for **ONLYOFFICE** section.\nEnter the following address to connect ONLYOFFICE Document Server:\n\n```bash\nhttps://\u003cdocumentserver\u003e/\n```\n\nWhere the **documentserver** is the name of the server with the ONLYOFFICE Document Server installed.\nThe address must be accessible for the user browser and from the ownCloud server.\nThe ownCloud server address must also be accessible from ONLYOFFICE Document Server for correct work.\n\nSometimes your network configuration might not allow the requests between installed ownCloud and ONLYOFFICE Document Server using the public addresses.\nThe _Advanced server settings_ allows to set the ONLYOFFICE Document Server address for internal requests from ownCloud server and the returning ownCloud address for the internal requests from ONLYOFFICE Document Server.\nYou need to enter them in the appropriate fields.\n\nStarting from version 7.2, JWT is enabled by default and the secret key is generated automatically to restrict the access to ONLYOFFICE Docs and for security reasons and data integrity. \nSpecify your own **Secret key** in the ownCloud administrative configuration. \nIn the ONLYOFFICE Docs [config file](https://api.onlyoffice.com/editors/signature/), specify the same secret key and enable the validation.\n\nEnable or disable the _Open file in the same tab_ setting.\n\nThe **Open in ONLYOFFICE** action will be added to the file context menu.\nYou can specify this action as default and it will be used when the file name is clicked for the selected file types.\n\n## Checking the connection \n\nYou can check the connection to ONLYOFFICE Document Server by using the following occ command:\n\n`occ onlyoffice:documentserver --check`\n\nYou will see a text either with information about the successful connection or the cause of the error.\n\n## Enabling editing for ownCloud Web\n\nTo enable work within ownCloud web, register the connector in the ownCloud Web config.json:\n\n* If you installed ownCloud Web from the official marketplace, the path is `\u003cowncloud-root-catalog\u003e/config/config.json`\n* If you compiled it from source code yourself using [this instruction](https://owncloud.dev/clients/web/backend-oc10/#running-web), the path is `\u003cowncloud-web-root-catalog\u003e/config/config.json`.\n\nTo register the connector, use these lines:\n\n```\n\"external_apps\": [\n    {\n        \"id\": \"onlyoffice\",\n        \"path\": \"http(s)://\u003cowncloud-10-server-address\u003e/index.php/apps/onlyoffice/js/onlyoffice.js\",\n    }\n]\n```\n\nDepending on your webserver configuration you can drop the `index.php` segment from the url path.\n\n## How it works\n\nThe ONLYOFFICE app follows the API documented [here](https://api.onlyoffice.com/editors/basic):\n\n* When creating a new file, the user navigates to a document folder within ownCloud and clicks the **Document**, **Spreadsheet** or **Presentation** item in the _new_ (+) menu.\n\n* The browser invokes the `create` method in the `/lib/Controller/EditorController.php` controller.\nThis method adds the copy of the file from the assets folder to the folder the user is currently in.\n\n* Or, when opening an existing file, the user navigates to it within ownCloud and selects the **Open in ONLYOFFICE** menu option.\n\n* A new browser tab is opened and the `index` method of the `/lib/Controller/EditorController.php` controller is invoked.\n\n* The app prepares a JSON object with the following properties:\n\n  * **url** - the URL that ONLYOFFICE Document Server uses to download the document;\n  * **callbackUrl** - the URL that ONLYOFFICE Document Server informs about status of the document editing;\n  * **documentServerUrl** - the URL that the client needs to respond to ONLYOFFICE Document Server (can be set at the administrative settings page);\n  * **key** - the etag to instruct ONLYOFFICE Document Server whether to download the document again or not;\n\n* ownCloud takes this object and constructs a page from `templates/editor.php` template, filling in all of those values so that the client browser can load up the editor.\n\n* The client browser makes a request for the javascript library from ONLYOFFICE Document Server and sends ONLYOFFICE Document Server the DocEditor configuration with the above properties.\n\n* Then ONLYOFFICE Document Server downloads the document from ownCloud and the user begins editing.\n\n* ONLYOFFICE Document Server sends a POST request to the _callbackUrl_ to inform ownCloud that a user is editing the document.\n\n* When all users and client browsers are done with editing, they close the editing window.\n\n* After [10 seconds](https://api.onlyoffice.com/editors/save#savedelay) of inactivity, ONLYOFFICE Document Server sends a POST to the _callbackUrl_ letting ownCloud know that the clients have finished editing the document and closed it.\n\n* ownCloud downloads the new version of the document, replacing the old one.\n\n## Known issues\n\n* Adding the storage using the **External storages** app has issues with the co-editing in some cases.\nIf the connection is made using the same authorization keys (the _Username and password_ or _Global credentials_ authentication type is selected), then the co-editing is available for the users.\nIf different authorization keys are used (_Log-in credentials, save in database_ or _User entered, store in database_ authentication options), the co-editing is not available.\nWhen the _Log-in credentials, save in session_ authentication type is used, the files cannot be opened in the editor.\n\n* ownCloud provides an option to encrypt the file storage.\nBut if the encryption with the _per-user encryption keys_ (used by default in ownCloud **Default encryption module** app) is enabled, ONLYOFFICE Document Server cannot open the encrypted files for editing and save them after the editing.\nThe ONLYOFFICE section of the administrative settings page will display a notification about it.\nHowever if you set the encryption with the _master key_, ONLYOFFICE application will work as intended.\nThe instruction on enabling _master key_ based encryption is available in the official documentation on [ownCloud](https://doc.owncloud.org/server/administration_manual/configuration/files/encryption_configuration.html#enabling-encryption-from-the-command-line) websites.\n\n* If you are using a self-signed certificate for your **Document Server**, ownCloud will not validate such a certificate and will not allow connection to/from **Document Server**. This issue can be solved in two ways.\n\n   You can check the '**Disable certificate verification (insecure)**' box on the ONLYOFFICE administration page, Server settings section, within your ownCloud. \n\n   Another option is to change the ownCloud config file manually. Locate the ownCloud config file (_/owncloud/config/config.php_) and open it. Insert the following section to it:\n\n    ```php\n    'onlyoffice' =\u003e array (\n        'verify_peer_off' =\u003e true\n    )\n    ```\n\n    This will disable the certificate verification and allow ownCloud to establish connection with **Document Server**. \n\n    Please remember that this is a temporary insecure solution and we strongly recommend that you replace the certificate with the one issued by some CA. Once you do that, do not forget to uncheck the corresponding setting box or remove the above section from the ownCloud config file.\n\n* If the editors don't open or save documents after a period of proper functioning, the reason can be a problem in changing network settings or disabling any relevant services, or issues with the SSL certificate.\n    \n    To solve this, we added an asynchronous background task which runs on the server to check availability of the editors. It allows testing the connection between your **ownCloud instance** and **ONLYOFFICE Document Server**, namely availability of server addresses and the validity of the JWT secret are being checked.\n \n    If any issue is detected, the ONLYOFFICE app (consequently, the ability to create and open files) will be disabled. As an ownCloud admin, you will get the corresponding notification. \n\n    This option allows you to avoid issues when the server settings become incorrect and require changes.\n\n    By default, this background task runs once a day. If necessary, you can change the frequency. To do so, open the ownCloud config file (_/owncloud/config/config.php_). Insert the following section and enter the required value in minutes:\n\n    ```php\n    'onlyoffice' =\u003e array (\n        'editors_check_interval' =\u003e 3624\n    )\n    ```\n    To disable this check running, enter 0 value. \n    \n* When accessing a document without download permission, file printing and using the system clipboard are not available. Copying and pasting within the editor is available via buttons in the editor toolbar and in the context menu.\n\n## ONLYOFFICE Docs editions\n\nONLYOFFICE offers different versions of its online document editors that can be deployed on your own servers.\n\n* Community Edition (`onlyoffice-documentserver` package)\n* Enterprise Edition (`onlyoffice-documentserver-ee` package)\n\nThe table below will help you to make the right choice.\n\n| Pricing and licensing | Community Edition | Enterprise Edition |\n| ------------- | ------------- | ------------- |\n| | [Get it now](https://www.onlyoffice.com/download-docs.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubOwncloud#docs-community)  | [Start Free Trial](https://www.onlyoffice.com/download-docs.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubOwncloud#docs-enterprise)  |\n| Cost  | FREE  | [Go to the pricing page](https://www.onlyoffice.com/docs-enterprise-prices.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubOwncloud)  |\n| Simultaneous connections | up to 20 maximum  | As in chosen pricing plan |\n| Number of users | up to 20 recommended | As in chosen pricing plan |\n| License | GNU AGPL v.3 | Proprietary |\n| **Support** | **Community Edition** | **Enterprise Edition** |\n| Documentation | [Help Center](https://helpcenter.onlyoffice.com/installation/docs-community-index.aspx) | [Help Center](https://helpcenter.onlyoffice.com/installation/docs-enterprise-index.aspx) |\n| Standard support | [GitHub](https://github.com/ONLYOFFICE/DocumentServer/issues) or paid | One year support included |\n| Premium support | [Contact us](mailto:sales@onlyoffice.com) | [Contact us](mailto:sales@onlyoffice.com) |\n| **Services** | **Community Edition** | **Enterprise Edition** |\n| Conversion Service                | + | + |\n| Document Builder Service          | + | + |\n| **Interface** | **Community Edition** | **Enterprise Edition** |\n| Tabbed interface                  | + | + |\n| Dark theme                        | + | + |\n| 125%, 150%, 175%, 200% scaling    | + | + |\n| White Label                       | - | - |\n| Integrated test example (node.js) | + | + |\n| Mobile web editors                | - | +* |\n| **Plugins \u0026 Macros** | **Community Edition** | **Enterprise Edition** |\n| Plugins                           | + | + |\n| Macros                            | + | + |\n| **Collaborative capabilities** | **Community Edition** | **Enterprise Edition** |\n| Two co-editing modes              | + | + |\n| Comments                          | + | + |\n| Built-in chat                     | + | + |\n| Review and tracking changes       | + | + |\n| Display modes of tracking changes | + | + |\n| Version history                   | + | + |\n| **Document Editor features** | **Community Edition** | **Enterprise Edition** |\n| Font and paragraph formatting   | + | + |\n| Object insertion                | + | + |\n| Adding Content control          | + | + | \n| Editing Content control         | + | + | \n| Layout tools                    | + | + |\n| Table of contents               | + | + |\n| Navigation panel                | + | + |\n| Mail Merge                      | + | + |\n| Comparing Documents             | + | + |\n| **Spreadsheet Editor features** | **Community Edition** | **Enterprise Edition** |\n| Font and paragraph formatting   | + | + |\n| Object insertion                | + | + |\n| Functions, formulas, equations  | + | + |\n| Table templates                 | + | + |\n| Pivot tables                    | + | + |\n| Data validation\t          | + | + |\n| Conditional formatting          | + | + |\n| Sparklines\t                  | + | + |\n| Sheet Views                     | + | + |\n| **Presentation Editor features** | **Community Edition** | **Enterprise Edition** |\n| Font and paragraph formatting   | + | + |\n| Object insertion                | + | + |\n| Transitions                     | + | + |\n| Animations                      | + | + |\n| Presenter mode                  | + | + |\n| Notes                           | + | + |\n| **Form creator features** | **Community Edition** | **Enterprise Edition** |\n| Adding form fields\t          | + | + |\n| Form preview                    | + | + |\n| Saving as PDF\t                  | + | + |\n| **Working with PDF**      | **Community Edition** | **Enterprise Edition** |\n| Text annotations (highlight, underline, cross out) | + | + |\n| Comments                        | + | + |\n| Freehand drawings               | + | + |\n| Form filling                    | + | + |\n| | [Get it now](https://www.onlyoffice.com/download-docs.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubOwncloud#docs-community)  | [Start Free Trial](https://www.onlyoffice.com/download-docs.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubOwncloud#docs-enterprise)  |\n\n\\* If supported by DMS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONLYOFFICE%2Fonlyoffice-owncloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FONLYOFFICE%2Fonlyoffice-owncloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONLYOFFICE%2Fonlyoffice-owncloud/lists"}