Privatebin Var Update #23

Merged
muppeth merged 1 commits from privatebin_var_update into master 2022-05-08 09:03:17 +02:00
1 changed files with 9 additions and 16 deletions

View File

@ -2,7 +2,7 @@
{% block root %}
root {{ nginx_www_dir }}{{ item.root }};
index {{ item.index }};
try_files {{ item.override_try_files | default('$uri $uri/ /index.php') }};
try_files {{ item.override_try_files | default('try_files $uri $uri/ /index.php$is_args$args') }};
{% endblock %}
{% block location %}
@ -28,22 +28,7 @@
{% endblock %}
{% block extra_upstreams %}
map $http_user_agent $pastebin_badagent {
~*bot 1;
~*spider 1;
~*crawl 1;
~https?:// 1;
WhatsApp 1;
SkypeUriPreview 1;
facebookexternalhit 1;
}
{% endblock %}
{% block app_specific %}
if ($pastebin_badagent) {
return 403;
}
location /cfg {
return 403;
@ -52,4 +37,12 @@ map $http_user_agent $pastebin_badagent {
location /data {
deny all;
}
{% if item.file_cache is defined and item.file_cache is iterable %}
{% for param in item.file_cache %}
open_file_cache {{ param.cache }};
open_file_cache_valid {{ param.valid }};
open_file_cache_min_uses {{ param.min_users }};
open_file_cache_errors {{ param.cache_errors }};
{% endfor %}
{% endif %}
{% endblock %}