mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
39
roles/matrix_element/templates/config.json.j2
Normal file
39
roles/matrix_element/templates/config.json.j2
Normal 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
|
||||
}
|
14
roles/matrix_element/templates/httpd.conf.j2
Normal file
14
roles/matrix_element/templates/httpd.conf.j2
Normal 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>
|
5
roles/matrix_element/templates/perms.sh.j2
Normal file
5
roles/matrix_element/templates/perms.sh.j2
Normal 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 "{}" \;
|
Reference in New Issue
Block a user