Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
"default_hs_url": "{{ element_default_home_server | default('https://' + synapse_server_name) | default('https://matrix.org') }}",
"default_is_url": "{{ element_default_identity_server }}",
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.element.im/scalar/api"
],
"bug_report_endpoint_url": "https://element.im/bugreports/submit",
"showLabsSettings": true,
"roomDirectory": {
"servers": [
"matrix.org"
]
},
"welcomeUserId": "@riot-bot:matrix.org",
"piwik": {
},
{% if element_jitsi_server is defined %}
"jitsi": {
"preferredDomain": "{{ element_jitsi_server }}"
},
{% endif %}
"settingDefaults": {
"UIFeature.feedback": false,
"UIFeature.thirdPartyId": false,
{% if synapse_auth is defined and 'internal' not in synapse_auth and synapse_auth != 'internal' %}
"UIFeature.passwordReset": false,
"UIFeature.deactivate": false,
{% endif %}
"UIFeature.registration": {{ (synapse_enable_registration | default(False)) | ternary('true', 'false') }}
},
"happyJson": true
}

View File

@@ -0,0 +1,14 @@
{% if element_web_alias is defined %}
Alias /{{ element_web_alias }} {{ element_root_dir }}/web
{% else %}
# No alias defined, create a vhost to access it
{% endif %}
<Directory {{ element_root_dir }}/web>
AllowOverride None
Options None
{% if element_allowed_ip is defined %}
Require ip {{ element_allowed_ip | join(' ') }}
{% else %}
Require all granted
{% endif %}
</Directory>

View File

@@ -0,0 +1,5 @@
#!/bin/sh
chown -R root:root {{ element_root_dir }}
find {{ element_root_dir }}/web -type f -exec chmod 644 "{}" \;
find {{ element_root_dir }}/web -type d -exec chmod 755 "{}" \;