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:
14
roles/matrix_synapse_admin/templates/httpd.conf.j2
Normal file
14
roles/matrix_synapse_admin/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{% if synadm_web_alias is defined and synadm_web_alias != False %}
|
||||
Alias /{{ synadm_web_alias }} {{ synadm_root_dir }}/web
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
<Directory {{ synadm_root_dir }}/web>
|
||||
AllowOverride None
|
||||
Options None
|
||||
{% if synadm_src_ip is defined %}
|
||||
Require ip {{ synadm_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
</Directory>
|
5
roles/matrix_synapse_admin/templates/perms.sh.j2
Normal file
5
roles/matrix_synapse_admin/templates/perms.sh.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
chown -R root:root {{ synadm_root_dir }}
|
||||
find {{ synadm_root_dir }}/web -type f -exec chmod 644 "{}" \;
|
||||
find {{ synadm_root_dir }}/web -type d -exec chmod 755 "{}" \;
|
Reference in New Issue
Block a user