Improve private prefetch proxy configuration

This commit is contained in:
VirtuBox
2022-10-20 11:45:09 +02:00
parent 677f8b9482
commit 9cad039fa0

View File

@@ -41,7 +41,7 @@ location /.well-known/acme-challenge/ {
# https://developer.chrome.com/blog/private-prefetch-proxy/
location /.well-known/traffic-advice {
types { } default_type "application/trafficadvice+json; charset=utf-8";
alias /var/www/html/.well-known/traffic-advice;
return 200 "[\{\n \"user_agent\": \"prefetch-proxy\",\n \"google_prefetch_proxy_eap\": \{\n \"fraction\": 1.0\n \}\n\}]";
allow all;
}
# Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) or other common git repository files