|
@@ -1,74 +1,73 @@
|
|
|
#jinja2: lstrip_blocks: True
|
|
|
{
|
|
|
- "title": "{{ etherpad.title }}",
|
|
|
- "favicon": "{{ etherpad.favicon }}",
|
|
|
- "ip": "{{ etherpad.ip }}",
|
|
|
- "port" : {{ etherpad.port }},
|
|
|
+ "title": "{{ title }}",
|
|
|
+ "favicon": "{{ favicon }}",
|
|
|
+ "ip": "",
|
|
|
+ "port" : "/tmp/etherpad.socket",
|
|
|
"showSettingsInAdminPage": false,
|
|
|
"sessionKey": "{{ etherpad.session_key }}",
|
|
|
"skinName": "colibris",
|
|
|
- "dbType": "mysql",
|
|
|
+ "dbType": "postgresql",
|
|
|
"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 }}"
|
|
|
+ "user" : "etherpad",
|
|
|
+ "host" : "/var/run/postgresql",
|
|
|
+ "password": "{{ database_password }}",
|
|
|
+ "database": "etherpad",
|
|
|
+ "charset" : "utf8mb4"
|
|
|
},
|
|
|
- "defaultPadText": {{ etherpad.default_text }},
|
|
|
+ "defaultPadText": "{{ pad_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 }}"
|
|
|
+ "noColors": false,
|
|
|
+ "showControls": true,
|
|
|
+ "showChat": true,
|
|
|
+ "showLineNumbers": true,
|
|
|
+ "useMonospaceFont": true,
|
|
|
+ "userName": true,
|
|
|
+ "userColor": false,
|
|
|
+ "rtl": false,
|
|
|
+ "alwaysShowChat": false,
|
|
|
+ "chatAndUsers": false,
|
|
|
+ "lang": "{{ 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 }}
|
|
|
+ "altF9": true,
|
|
|
+ "altC": true,
|
|
|
+ "cmdShift2": true,
|
|
|
+ "delete": true,
|
|
|
+ "return": true,
|
|
|
+ "esc": true,
|
|
|
+ "cmdS": true,
|
|
|
+ "tab": true,
|
|
|
+ "cmdZ": true,
|
|
|
+ "cmdY": true,
|
|
|
+ "cmdI": true,
|
|
|
+ "cmdB": true,
|
|
|
+ "cmdU": true,
|
|
|
+ "cmd5": true,
|
|
|
+ "cmdShiftL": true,
|
|
|
+ "cmdShiftN": true,
|
|
|
+ "cmdShift1": true,
|
|
|
+ "cmdShiftC": true,
|
|
|
+ "cmdH": true,
|
|
|
+ "ctrlHome": true,
|
|
|
+ "pageUp": true,
|
|
|
+ "pageDown": true}
|
|
|
},
|
|
|
- "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 }},
|
|
|
+ "suppressErrorsInPadText": false,
|
|
|
+ "requireSession": false,
|
|
|
+ "editOnly": false,
|
|
|
+ "sessionNoPassword": false,
|
|
|
+ "minify": true,
|
|
|
+ "maxAge": 21600,
|
|
|
+ "abiword": "/usr/bin/abiword",
|
|
|
+ "soffice": "/usr/bin/soffice",
|
|
|
+ "tidyHtml": "/usr/bin/tidy",
|
|
|
+ "allowUnknownFileEnds": true,
|
|
|
+ "requireAuthentication": false,
|
|
|
+ "requireAuthorization": false,
|
|
|
+ "trustProxy": false,
|
|
|
+ "disableIPlogging": true,
|
|
|
+ "automaticReconnectionTimeout": 5,
|
|
|
"scrollWhenFocusLineIsOutOfViewport": {
|
|
|
"percentage": {
|
|
|
"editionAboveViewport": 0,
|
|
@@ -78,32 +77,25 @@
|
|
|
"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 }},
|
|
|
+ "socketTransportProtocols": : ["xhr-polling", "jsonp-polling", "htmlfile"],
|
|
|
"loadTest": false,
|
|
|
- "indentationOnNewLine": {{ etherpad.indentation_on_new_line }},
|
|
|
- "toolbar": {{ etherpad.toolbar|to_json }},
|
|
|
+ "indentationOnNewLine": false,
|
|
|
+ "toolbar": {
|
|
|
+ "left": [
|
|
|
+ ["bold", "italic", "underline", "strikethrough"],
|
|
|
+ ["orderedlist", "unorderedlist", "indent", "outdent"],
|
|
|
+ ["undo", "redo"],
|
|
|
+ ["clearauthorship"]
|
|
|
+ ],
|
|
|
+ "right": [
|
|
|
+ ["importexport", "timeslider", "savedrevision"],
|
|
|
+ ["settings", "embed"],
|
|
|
+ ["showusers"]
|
|
|
+ ],
|
|
|
+ "timeslider": [
|
|
|
+ ["timeslider_export", "timeslider_returnToPad"]
|
|
|
+ ]
|
|
|
+ }
|
|
|
"exposeVersion": false,
|
|
|
- "loglevel": "{{ etherpad.log_level }}",
|
|
|
+ "loglevel": "WARN",
|
|
|
}
|