添加badssl.com目录

This commit is contained in:
付明卫
2019-12-20 15:48:39 +08:00
parent 69eb20e8dc
commit bd4dd5b9aa
422 changed files with 27323 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
---
---
# The top-level root is specified by each individual .conf file.
# https://github.com/lgarron/{{ site.domain }}/issues/47
add_header "Cache-Control" "no-store";
location /test {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
location /test/cors {
add_header "Access-Control-Allow-Origin" "*";
if ($http_referer ~* (youtube.com|ytimg.com|m.facebook.com|google) ) {
access_log off;
}
}
location /test/basic-auth {
auth_basic "HTTP Basic Auth. Username and password are `test`/`test`.";
auth_basic_user_file {{ site.serving-path }}/nginx-includes/basic-auth.htpasswd;
}
}
location /icons {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
proxy_cache_valid 200 1h;
}
location = /style.css {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
}
location = /crossdomain.xml {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
}
location = /robots.txt {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
}
location /mixed/ {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
}
location /certs/ {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
}
location /input/ {
root {{ site.serving-path }}/common;
try_files $uri $uri/ =404;
location /input/login/submit {
error_page 405 =200 $uri;
}
location /input/dynamic-login/submit {
error_page 405 =200 $uri;
}
}
location / {
try_files $uri $uri/ =404;
}