1
0
Fork 0
forked from cisti/infra
infra/roles/etherpad/templates/settings.json.j2
2020-09-29 00:16:08 +02:00

109 lines
4.5 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{
"title": "{{ etherpad.title }}",
"favicon": "{{ etherpad.favicon }}",
"ip": "{{ etherpad.ip }}",
"port" : {{ etherpad.port }},
"showSettingsInAdminPage": false,
"sessionKey": "{{ etherpad.session_key }}",
"skinName": "colibris",
"dbType": "mysql",
"dbSettings" : {
"user" : "{{ etherpad.mysql_database_user }}",
"host" : "{{ etherpad.mysql_database_host }}",
"port" : {{ etherpad.mysql_database_port }},
"password": "{{ etherpad.mysql_database_password }}",
"database": "{{ etherpad.mysql_database_name }}",
"charset" : "{{ etherpad.mysql_database_charset }}"
},
"defaultPadText": {{ etherpad.default_text }},
"padOptions": {
"noColors": {{ etherpad.pad_options_no_colors }},
"showControls": {{ etherpad.pad_options_show_controls }},
"showChat": {{ etherpad.pad_options_show_chat }},
"showLineNumbers": {{ etherpad.pad_options_show_line_numbers }},
"useMonospaceFont": {{ etherpad.pad_options_use_monospace_font }},
"userName": {{ etherpad.pad_options_user_name }},
"userColor": {{ etherpad.pad_options_user_color }},
"rtl": {{ etherpad.pad_options_rtl }},
"alwaysShowChat": {{ etherpad.pad_options_always_show_chat }},
"chatAndUsers": {{ etherpad.pad_options_chat_and_users }},
"lang": "{{ etherpad.pad_options_lang }}"
},
"padShortcutEnabled" : {
"altF9": {{ etherpad.pad_shortcut_alt_f9 }},
"altC": {{ etherpad.pad_shortcut_alt_c }},
"cmdShift2": {{ etherpad.pad_shortcut_cmd_shft_2 }},
"delete": {{ etherpad.pad_shortcut_delete }},
"return": {{ etherpad.pad_shortcut_return }},
"esc": {{ etherpad.pad_shortcut_esc }},
"cmdS": {{ etherpad.pad_shortcut_cmd_s }},
"tab": {{ etherpad.pad_shortcut_tab }},
"cmdZ": {{ etherpad.pad_shortcut_cmd_z }},
"cmdY": {{ etherpad.pad_shortcut_cmd_y }},
"cmdI": {{ etherpad.pad_shortcut_cmd_i }},
"cmdB": {{ etherpad.pad_shortcut_cmd_b }},
"cmdU": {{ etherpad.pad_shortcut_cmd_u }},
"cmd5": {{ etherpad.pad_shortcut_cmd_5 }},
"cmdShiftL": {{ etherpad.pad_shortcut_cmd_shift_l }},
"cmdShiftN": {{ etherpad.pad_shortcut_cmd_shift_n }},
"cmdShift1": {{ etherpad.pad_shortcut_cmd_shift_1 }},
"cmdShiftC": {{ etherpad.pad_shortcut_cmd_shift_c }},
"cmdH": {{ etherpad.pad_shortcut_cmd_h }},
"ctrlHome": {{ etherpad.pad_shortcut_ctrl_home }},
"pageUp": {{ etherpad.pad_shortcut_page_up }},
"pageDown": {{ etherpad.pad_shortcut_page_down }}
},
"suppressErrorsInPadText": {{ etherpad.suppress_errors_in_pad_text }},
"requireSession": {{ etherpad.require_session }},
"editOnly": {{ etherpad.edit_only }},
"sessionNoPassword": {{ etherpad.session_no_password }},
"minify": {{ etherpad.minify }},
"maxAge": {{ etherpad.max_age }},
"abiword": {{ etherpad.abiword }},
"soffice": {{ etherpad.soffice }},
"tidyHtml": {{ etherpad.tidyhtml }},
"allowUnknownFileEnds": {{ etherpad.allow_unknown_file_ends }},
"requireAuthentication": {{ etherpad.require_authentication }},
"requireAuthorization": {{ etherpad.require_authorization }},
"trustProxy": {{ etherpad.trust_proxy }},
"disableIPlogging": {{ etherpad.disable_ip_logging }},
"automaticReconnectionTimeout": {{ etherpad.automatic_reconnection_timeout }},
"scrollWhenFocusLineIsOutOfViewport": {
"percentage": {
"editionAboveViewport": 0,
"editionBelowViewport": 0
},
"duration": 0,
"scrollWhenCaretIsInTheLastLineOfViewport": false,
"percentageToScrollWhenUserPressesArrowUp": 0
},
{% if 'ep_table_of_contents' in etherpad.plugins %}
"ep_toc": {
"disable_by_default": {{ etherpad.toc_disable }}
},
{% endif %}
{% if 'ep_auth_author' in etherpad.plugins and etherpad.auth_author_prefix is defined %}
"ep_auth_author": {
"prefix": "{{ etherpad.auth_author_prefix }}"
},
{% endif %}
"users": {
{% for user in etherpad.users %}
"{% if user.auth_author is defined and user.auth_author %}{{ etherpad.auth_author_prefix }}{% endif %}{{ user.name }}": {
"password": "{{ user.password }}",
{% if user.auth_author is defined and user.auth_author %}
"author_name": "{{ user.name }}",
{% endif %}
"is_admin": {{ user.is_admin }}
}{% if not loop.last %},{% endif %}
{% endfor %}
},
"socketTransportProtocols": {{ etherpad.socket_transport_protocols|to_json }},
"loadTest": false,
"indentationOnNewLine": {{ etherpad.indentation_on_new_line }},
"toolbar": {{ etherpad.toolbar|to_json }},
"exposeVersion": false,
"loglevel": "{{ etherpad.log_level }}",
}