update framadate template #15

Merged
meaz merged 1 commits from framadate into master 2021-07-29 10:31:17 +02:00
1 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,11 @@
{% extends "core.j2" %}
{% block root %}
root {{ nginx_www_dir }}{{ item.root }};
index {{ item.index }};
try_files {{ item.override_try_files | default('$uri $uri/ /index.php') }};
{% endblock %}
{% block location %}
## LOCATIONS
@ -29,8 +35,8 @@
location /admin/ {
auth_basic "closed site";
auth_basic_user_file {{ nginx_www_dir }}/{{ item.root }}/admin/.htpasswd;
auth_basic_user_file {{ nginx_www_dir }}{{ item.root }}/admin/.htpasswd;
location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
@ -41,11 +47,11 @@
}
location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:{{ pool_listen }};
{% if item.upstream_params is defined and item.upstream_params is iterable %}
{% for param in item.upstream_params %}
{{ param }}
{% endfor %}
{% endif %}
}
{% endblock %}