mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 15:05:01 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
27
roles/ampache/templates/httpd.conf.j2
Normal file
27
roles/ampache/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,27 @@
|
||||
{% if ampache_alias is defined %}
|
||||
Alias /{{ ampache_alias }} {{ ampache_root_dir }}/web/public
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
|
||||
RewriteEngine On
|
||||
<Directory {{ ampache_root_dir }}/web/public>
|
||||
AllowOverride All
|
||||
Options FollowSymLinks
|
||||
{% if ampache_allowed_ip is defined %}
|
||||
Require ip {{ ampache_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ ampache_php_fpm_pool | default('ampache_' + ampache_id | string) }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
<FilesMatch "(.maintenance.*|.ansible.*|.php_cs|.travis.*)">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
||||
<Directory {{ ampache_root_dir }}/web/config>
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
Reference in New Issue
Block a user