2015-12-23 23:37:58 +07:00
|
|
|
{% extends "_base.j2" %}
|
|
|
|
|
|
|
|
{% block root %}
|
|
|
|
root /usr/share/backuppc/cgi-bin;
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_try_files %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_index %}
|
|
|
|
index index.cgi;
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_local_content %}
|
2016-01-22 15:52:15 +07:00
|
|
|
location ~ /\.ht {
|
2016-01-22 15:46:43 +07:00
|
|
|
deny all;
|
2016-01-22 15:52:15 +07:00
|
|
|
}
|
2015-12-23 23:37:58 +07:00
|
|
|
|
|
|
|
location /backuppc/image {
|
|
|
|
alias /usr/share/backuppc/image;
|
|
|
|
expires 60d;
|
|
|
|
}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_upstream_location %}
|
|
|
|
location ~ \.cgi$ {
|
|
|
|
gzip off;
|
2018-03-17 20:02:08 +07:00
|
|
|
include fastcgi.conf;
|
2015-12-23 23:37:58 +07:00
|
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
|
|
fastcgi_index BackupPC_Admin;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/backuppc/cgi-bin$fastcgi_script_name;
|
|
|
|
}
|
|
|
|
{% endblock %}
|