mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
32
roles/kanboard/templates/httpd.conf.j2
Normal file
32
roles/kanboard/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,32 @@
|
||||
{% if kanboard_alias is defined %}
|
||||
Alias /{{ kanboard_alias }} {{ kanboard_root_dir }}/web
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
|
||||
<Directory {{ kanboard_root_dir }}/web>
|
||||
AllowOverride None
|
||||
Options FollowSymLinks
|
||||
{% if kanboard_src_ip is defined and kanboard_src_ip | length > 0 %}
|
||||
Require ip {{ kanboard_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ kanboard_php_fpm_pool | default('kanboard_' + kanboard_id) }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
<IfModule mod_rewrite.c>
|
||||
Options -MultiViews
|
||||
SetEnv HTTP_MOD_REWRITE On
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
</IfModule>
|
||||
<FilesMatch "(kanboard|config.php|config.default.php|.ansible_version|.git.*)">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
||||
<Directory {{ kanboard_root_dir }}/web/app>
|
||||
Require all denied
|
||||
</Directory>
|
Reference in New Issue
Block a user