|
| 1 | +========================== |
| 2 | +Configuration |
| 3 | +========================== |
| 4 | + |
| 5 | +After installing the Euro-Office Document Server, install the Nextcloud connector app |
| 6 | +and connect it to the server. |
| 7 | + |
| 8 | +Installing the connector app |
| 9 | +----------------------------- |
| 10 | + |
| 11 | +Install the **Euro-Office** app from the Nextcloud App Store: |
| 12 | + |
| 13 | +1. Open :menuselection:`Settings --> Apps` in your Nextcloud admin interface. |
| 14 | +2. Search for **Euro-Office**. |
| 15 | +3. Click **Download and enable**. |
| 16 | + |
| 17 | +Alternatively, install the app using the :command:`occ` command: |
| 18 | + |
| 19 | +.. code-block:: bash |
| 20 | +
|
| 21 | + php occ app:install eurooffice |
| 22 | +
|
| 23 | +Connecting to the Document Server |
| 24 | +----------------------------------- |
| 25 | + |
| 26 | +1. Open :menuselection:`Settings --> Administration --> Euro-Office`. |
| 27 | +2. Enter the Document Server URL in the **Euro-Office Docs address** field: |
| 28 | + |
| 29 | + .. code-block:: text |
| 30 | +
|
| 31 | + https://<documentserver>/ |
| 32 | +
|
| 33 | + where ``<documentserver>`` is the hostname or IP of the machine running Euro-Office Document Server. |
| 34 | + |
| 35 | +3. Enter the **Secret key** — this must match the JWT secret configured on the Document Server: |
| 36 | + |
| 37 | + - **deb/rpm install:** the secret is in ``/etc/euro-office/documentserver/local.json`` |
| 38 | + under ``services.CoAuthoring.secret.browser.string``. |
| 39 | + - **Docker install:** the value of the ``JWT_SECRET`` environment variable used when |
| 40 | + starting the container. |
| 41 | + |
| 42 | +4. Click **Save**. |
| 43 | + |
| 44 | +A green status indicator confirms a successful connection. |
| 45 | + |
| 46 | +Advanced server settings |
| 47 | +-------------------------- |
| 48 | + |
| 49 | +If the public Document Server URL is not reachable from your Nextcloud server (for example, |
| 50 | +behind a NAT or a split-horizon DNS), configure separate addresses for server-side and |
| 51 | +client-side communication: |
| 52 | + |
| 53 | +- **Euro-Office Docs address for internal requests from the server** — the URL Nextcloud uses |
| 54 | + to contact the Document Server directly (must be reachable from the Nextcloud host). |
| 55 | +- **Nextcloud address available from Document Server** — the URL the Document Server uses |
| 56 | + to send callbacks back to Nextcloud (must be reachable from the Document Server host). |
| 57 | + |
| 58 | +Common settings |
| 59 | +--------------- |
| 60 | + |
| 61 | +.. list-table:: |
| 62 | + :header-rows: 1 |
| 63 | + :widths: 35 65 |
| 64 | + |
| 65 | + * - Setting |
| 66 | + - Description |
| 67 | + * - Open file in the same tab |
| 68 | + - Opens documents inside Nextcloud instead of a new browser tab. |
| 69 | + * - Enable sharing |
| 70 | + - Allows users to share files directly from within the editor. |
| 71 | + * - Generate document preview |
| 72 | + - Uses Euro-Office to generate thumbnail previews for Office files. |
| 73 | + * - Advanced document permissions |
| 74 | + - Enables per-user fine-grained permissions (review-only, comment-only, etc.) |
| 75 | + on shared files. |
| 76 | + * - Enable e-mail notifications |
| 77 | + - Sends e-mail notifications when a document is commented or edited. |
| 78 | + * - Keep version history |
| 79 | + - Stores metadata for each version created while editing. |
| 80 | + * - Document protection |
| 81 | + - Sets who can protect/unprotect documents: document owners only (``owner``) |
| 82 | + or all editors (``all``). |
| 83 | + * - Restrict access to groups |
| 84 | + - Limits editor access to specific Nextcloud groups. |
| 85 | + |
| 86 | +Customization settings |
| 87 | +----------------------- |
| 88 | + |
| 89 | +.. list-table:: |
| 90 | + :header-rows: 1 |
| 91 | + :widths: 35 65 |
| 92 | + |
| 93 | + * - Setting |
| 94 | + - Description |
| 95 | + * - Display Chat menu button |
| 96 | + - Shows or hides the in-editor chat panel. |
| 97 | + * - Compact header |
| 98 | + - Displays a more compact toolbar header in the editor. |
| 99 | + * - Display Feedback & Support button |
| 100 | + - Shows or hides the Feedback & Support entry in the editor menu. |
| 101 | + * - Forcesave |
| 102 | + - Saves an intermediate version of the document each time a user explicitly |
| 103 | + saves (in addition to the final version saved on editor close). |
| 104 | + * - Display Help menu button |
| 105 | + - Shows or hides the Help entry in the editor menu. |
| 106 | + * - Review display mode |
| 107 | + - Default mode for viewing tracked changes: ``original``, ``markup``, or ``final``. |
| 108 | + * - Editor theme |
| 109 | + - Default color theme for the editor interface. |
| 110 | + * - Run document macros |
| 111 | + - Allows macros embedded in documents to execute. |
| 112 | + * - Enable plugins |
| 113 | + - Allows third-party plugins inside the editor. |
| 114 | + |
| 115 | +Watermark settings |
| 116 | +------------------ |
| 117 | + |
| 118 | +Watermarks are overlaid on documents when they are opened by specified users or via shares. |
| 119 | + |
| 120 | +Enable watermarking under :menuselection:`Settings --> Administration --> Euro-Office --> Security`. |
| 121 | + |
| 122 | +The watermark text supports the following placeholders: |
| 123 | + |
| 124 | +- ``{userId}`` — Nextcloud user ID |
| 125 | +- ``{userDisplayName}`` — user's display name |
| 126 | +- ``{email}`` — user's e-mail address |
| 127 | +- ``{date}`` — current date |
| 128 | +- ``{themingName}`` — Nextcloud instance name from theming settings |
| 129 | + |
| 130 | +occ commands |
| 131 | +------------ |
| 132 | + |
| 133 | +Settings can also be managed via :command:`occ`: |
| 134 | + |
| 135 | +.. code-block:: bash |
| 136 | +
|
| 137 | + # Read a setting |
| 138 | + php occ config:app:get eurooffice DocumentServerUrl |
| 139 | +
|
| 140 | + # Write a setting |
| 141 | + php occ config:app:set eurooffice DocumentServerUrl --value="https://office.example.com/" |
| 142 | +
|
| 143 | + # Check the connection to the Document Server |
| 144 | + php occ eurooffice:documentserver --check |
| 145 | +
|
| 146 | +config.php |
| 147 | +---------- |
| 148 | + |
| 149 | +Settings can also be set directly in ``config/config.php`` under the ``eurooffice`` key: |
| 150 | + |
| 151 | +.. code-block:: php |
| 152 | +
|
| 153 | + "eurooffice" => [ |
| 154 | + "DocumentServerUrl" => "https://office.example.com/", |
| 155 | + "jwt_secret" => "your-secret", |
| 156 | + "verify_peer_off" => false, |
| 157 | + ], |
| 158 | +
|
| 159 | +Settings defined in ``config.php`` are used as fallback when no value is set via the admin UI |
| 160 | +or :command:`occ`. The UI takes precedence. |
0 commit comments