matrix-docker-ansible-deploy/docs/configuring-playbook-etherpad.md

87 lines
3.9 KiB
Markdown
Raw Normal View History

2021-01-20 14:52:26 +00:00
# Setting up Etherpad (optional)
[Etherpad](https://etherpad.org) is an open source collaborative text editor that can be embedded in a Matrix chat room using the [Dimension integrations manager](https://dimension.t2bot.io) or used as standalone web app.
2021-01-20 14:52:26 +00:00
2021-01-31 07:54:12 +00:00
When enabled together with the Jitsi audio/video conferencing system (see [our docs on Jitsi](configuring-playbook-jitsi.md)), it will be made available as an option during the conferences.
2021-01-20 14:52:26 +00:00
2022-11-05 09:47:47 +00:00
## Decide on a domain and path
2021-01-20 14:52:26 +00:00
By default, Etherpad is configured to use its own dedicated domain (`etherpad.example.com`) and requires you to [adjust your DNS records](#adjusting-dns-records).
2022-11-05 09:47:47 +00:00
You can override the domain and path like this:
2022-11-05 09:47:47 +00:00
```yaml
# Switch to the domain used for Matrix services (`matrix.example.com`),
# so we won't need to add additional DNS records for Etherpad.
etherpad_hostname: "{{ matrix_server_fqn_matrix }}"
# Expose under the /etherpad subpath
etherpad_path_prefix: /etherpad
```
## Adjusting DNS records
2022-11-05 09:47:47 +00:00
Once you've decided on the domain and path, **you may need to adjust your DNS** records to point the Etherpad domain to the Matrix server.
If you've decided to reuse the `matrix.` domain, you won't need to do any extra DNS configuration.
2022-11-04 09:36:10 +00:00
2021-01-20 14:52:26 +00:00
## Adjusting the playbook configuration
2021-01-20 14:52:26 +00:00
[Etherpad](https://etherpad.org) installation is disabled by default. To enable Etherpad, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
2021-01-20 14:52:26 +00:00
```yaml
etherpad_enabled: true
# Uncomment and adjust this part if you'd like to enable the admin web UI
# etherpad_admin_username: YOUR_USERNAME_HERE
# etherpad_admin_password: YOUR_PASSWORD_HERE
```
## Installing
After configuring the playbook, run the [installation](installing.md) command: `just install-all` or `just setup-all`
## Usage
The Etherpad UI should be available at `https://etherpad.example.com`, while the admin UI (if enabled) should then be available at `https://etherpad.example.com/admin`.
If you've [decided on another hostname or path-prefix](#decide-on-a-domain-and-path) (e.g. `https://matrix.example.com/etherpad`), adjust these URLs accordingly before usage.
2022-11-05 09:47:47 +00:00
### Managing / Deleting old pads
If you want to manage and remove old unused pads from Etherpad, you will first need to able Admin access as described above.
Then from the plugin manager page (`https://etherpad.example.com/admin/plugins`, install the `adminpads2` plugin. Once installed, you should have a "Manage pads" section in the Admin web-UI.
2022-11-04 09:36:10 +00:00
2022-11-05 09:47:47 +00:00
### How to use Etherpad widgets without an Integration Manager (like Dimension)
2022-11-16 09:56:22 +00:00
This is how it works in Element, it might work quite similar with other clients:
To integrate a standalone Etherpad in a room, create your pad by visiting `https://etherpad.example.com`. When the pad opens, copy the URL and send a command like this to the room: `/addwidget URL`. You will then find your integrated Etherpad within the right sidebar in the `Widgets` section.
2022-11-16 09:56:22 +00:00
### Set Dimension default to the self-hosted Etherpad (optional)
2022-11-04 09:36:10 +00:00
2022-11-05 09:47:47 +00:00
If you decided to install [Dimension integration manager](configuring-playbook-dimension.md) alongside Etherpad, the Dimension administrator users can configure the default URL template.
2022-11-05 09:47:47 +00:00
The Dimension configuration menu can be accessed with the sprocket icon as you begin to add a widget to a room in Element. There you will find the Etherpad Widget Configuration action beneath the _Widgets_ tab.
2022-11-05 07:17:47 +00:00
2022-11-04 09:36:10 +00:00
#### Removing the integrated Etherpad chat
2022-11-04 09:36:10 +00:00
If you wish to disable the Etherpad chat button, you can do it by appending `?showChat=false` to the end of the pad URL, or the template.
2022-11-05 09:47:47 +00:00
Example: `https://etherpad.example.com/p/$roomId_$padName?showChat=false`
2022-11-05 09:47:47 +00:00
## Known issues
If your Etherpad widget fails to load, this might be due to Dimension generating a Pad name so long, the Etherpad app rejects it.
`$roomId_$padName` can end up being longer than 50 characters. You can avoid having this problem by altering the template so it only contains the three word random identifier `$padName`.