feat(etherpad): add optional admin web-UI access
Enables optional access to Etherpad's web-UI. This is useful for managing Etherpad plugins. Among other things, plugins makes it easy to manage/delete pads if you install the adminpads2 plugin.
This commit is contained in:
@ -41,6 +41,11 @@ matrix_etherpad_database_hostname: 'matrix-postgres'
|
||||
matrix_etherpad_database_port: 5432
|
||||
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 }}'
|
||||
|
||||
# Variables configuring the etherpad
|
||||
|
@ -71,6 +71,14 @@
|
||||
"chatAndUsers": false,
|
||||
"lang": "en-gb"
|
||||
},
|
||||
{% if matrix_etherpad_admin_username != "" and matrix_etherpad_admin_password != "" %}
|
||||
"users": {
|
||||
"{{ matrix_etherpad_admin_username }}": {
|
||||
"password": "{{ matrix_etherpad_admin_password }}",
|
||||
"is_admin": true
|
||||
}
|
||||
},
|
||||
{% endif %}
|
||||
"padShortcutEnabled" : {
|
||||
"altF9": true,
|
||||
"altC": true,
|
||||
|
Reference in New Issue
Block a user