Bläddra i källkod

Merge pull request #1497 from jimeh/etherpad-add-optional-admin-access

feat(etherpad): add optional admin web-UI access
pull/1507/head
Slavi Pantaleev 4 år sedan
committed by GitHub
förälder
incheckning
b3a9160e0f
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
3 ändrade filer med 30 tillägg och 0 borttagningar
  1. +17
    -0
      docs/configuring-playbook-etherpad.md
  2. +5
    -0
      roles/matrix-etherpad/defaults/main.yml
  3. +8
    -0
      roles/matrix-etherpad/templates/settings.json.j2

+ 17
- 0
docs/configuring-playbook-etherpad.md Visa fil

@@ -25,6 +25,23 @@ The Dimension administrator users can configure the default URL template. The Di
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. 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.
Example: `https://dimension.<your-domain>/etherpad/p/$roomId_$padName?showChat=false` Example: `https://dimension.<your-domain>/etherpad/p/$roomId_$padName?showChat=false`


### Etherpad Admin access (optional)

Etherpad comes with a admin web-UI which is disabled by default. You can enable it by setting a username and password in your configuration file (`inventory/host_vars/matrix.<your-domain>/vars.yml`):

```yaml
matrix_etherpad_admin_username: admin
matrix_etherpad_admin_password: some-password
```

The admin web-UI should then be available on: `https://dimension.<your-domain>/etherpad/admin`

### 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://dimension.<your-domain>/etherpad/admin/plugins`), install the `adminpads2` plugin. Once installed, you should have a "Manage pads" section in the Admin web-UI.

## Known issues ## 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. If your Etherpad widget fails to load, this might be due to Dimension generating a Pad name so long, the Etherpad app rejects it.


+ 5
- 0
roles/matrix-etherpad/defaults/main.yml Visa fil

@@ -41,6 +41,11 @@ matrix_etherpad_database_hostname: 'matrix-postgres'
matrix_etherpad_database_port: 5432 matrix_etherpad_database_port: 5432
matrix_etherpad_database_name: 'matrix_etherpad' matrix_etherpad_database_name: 'matrix_etherpad'


# If a admin username and password is set, the /admin web page will be
# available.
matrix_etherpad_admin_username: ''
matrix_etherpad_admin_password: ''

matrix_etherpad_database_connection_string: 'postgres://{{ matrix_etherpad_database_username }}:{{ matrix_etherpad_database_password }}@{{ matrix_etherpad_database_hostname }}:{{ matrix_etherpad_database_port }}/{{ matrix_etherpad_database_name }}' matrix_etherpad_database_connection_string: 'postgres://{{ matrix_etherpad_database_username }}:{{ matrix_etherpad_database_password }}@{{ matrix_etherpad_database_hostname }}:{{ matrix_etherpad_database_port }}/{{ matrix_etherpad_database_name }}'


# Variables configuring the etherpad # Variables configuring the etherpad


+ 8
- 0
roles/matrix-etherpad/templates/settings.json.j2 Visa fil

@@ -71,6 +71,14 @@
"chatAndUsers": false, "chatAndUsers": false,
"lang": "en-gb" "lang": "en-gb"
}, },
{% if matrix_etherpad_admin_username != "" and matrix_etherpad_admin_password != "" %}
"users": {
{{ matrix_etherpad_admin_username|to_json }}: {
"password": {{ matrix_etherpad_admin_password|to_json }},
"is_admin": true
}
},
{% endif %}
"padShortcutEnabled" : { "padShortcutEnabled" : {
"altF9": true, "altF9": true,
"altC": true, "altC": true,


Laddar…
Avbryt
Spara