Add Private Prefetch Proxy
This commit is contained in:
@@ -37,6 +37,13 @@ location /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
auth_basic off;
|
||||
}
|
||||
# Private Prefetch Proxy
|
||||
# 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;
|
||||
allow all;
|
||||
}
|
||||
# Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) or other common git repository files
|
||||
location ~* "/(^$|readme|license|example|README|LEGALNOTICE|INSTALLATION|CHANGELOG)\.(txt|html|md)" {
|
||||
deny all;
|
||||
|
||||
6
wo/cli/templates/traffic-advice.mustache
Normal file
6
wo/cli/templates/traffic-advice.mustache
Normal file
@@ -0,0 +1,6 @@
|
||||
[{
|
||||
"user_agent": "prefetch-proxy",
|
||||
"google_prefetch_proxy_eap": {
|
||||
"fraction": 1.0
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user