mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-03-07 16:00
This commit is contained in:
30
roles/unmaintained/matrix_riot/templates/config.json.j2
Normal file
30
roles/unmaintained/matrix_riot/templates/config.json.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"default_hs_url": "{{ riot_default_home_server | default('https://' + synapse_server_name) | default('https://matrix.org') }}",
|
||||
"default_is_url": "{{ riot_default_identity_server }}",
|
||||
"brand": "Riot",
|
||||
"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.riot.im/scalar/api"
|
||||
],
|
||||
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
||||
"enableLabs": true,
|
||||
"roomDirectory": {
|
||||
"servers": [
|
||||
"matrix.org"
|
||||
]
|
||||
},
|
||||
"welcomeUserId": "@riot-bot:matrix.org",
|
||||
"piwik": {
|
||||
},
|
||||
{% if riot_jitsi_server is defined %}
|
||||
"jitsi": {
|
||||
"preferredDomain": "{{ riot_jitsi_server }}"
|
||||
},
|
||||
{% endif %}
|
||||
"happyJson": true
|
||||
}
|
14
roles/unmaintained/matrix_riot/templates/httpd.conf.j2
Normal file
14
roles/unmaintained/matrix_riot/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{% if riot_web_alias is defined %}
|
||||
Alias /{{ riot_web_alias }} {{ riot_root_dir }}/web
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
<Directory {{ riot_root_dir }}/web>
|
||||
AllowOverride None
|
||||
Options None
|
||||
{% if riot_allowed_ip is defined %}
|
||||
Require ip {{ riot_allowed_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
</Directory>
|
5
roles/unmaintained/matrix_riot/templates/perms.sh.j2
Normal file
5
roles/unmaintained/matrix_riot/templates/perms.sh.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
chown -R root:root {{ riot_root_dir }}
|
||||
find {{ riot_root_dir }}/web -type f -exec chmod 644 "{}" \;
|
||||
find {{ riot_root_dir }}/web -type d -exec chmod 755 "{}" \;
|
Reference in New Issue
Block a user