From dd56c5ff620e5d5566326cd9711dc6c9e61cd0ea Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 20 Jun 2023 10:20:40 -0700 Subject: [PATCH] chore: create well-known dir; fix 404 --- netlify.toml | 7 ++++++- src/{ => well-known}/security.liquid | 0 src/well-known/traffic-advice.liquid | 11 +++++++++++ src/{feeds => well-known}/webfinger.liquid | 0 4 files changed, 17 insertions(+), 1 deletion(-) rename src/{ => well-known}/security.liquid (100%) create mode 100644 src/well-known/traffic-advice.liquid rename src/{feeds => well-known}/webfinger.liquid (100%) diff --git a/netlify.toml b/netlify.toml index 500f36fc..5a8dc8f3 100644 --- a/netlify.toml +++ b/netlify.toml @@ -63,4 +63,9 @@ for = "/.well-known/webfinger" [[headers]] for = "/.well-known/gpc.json" [headers.values] - Content-Type = "application/jrd+json; charset=utf-8" \ No newline at end of file + Content-Type = "application/jrd+json; charset=utf-8" + +[[headers]] +for = "/.well-known/traffic-advice" + [headers.values] + Content-Type = "application/trafficadvice+json" \ No newline at end of file diff --git a/src/security.liquid b/src/well-known/security.liquid similarity index 100% rename from src/security.liquid rename to src/well-known/security.liquid diff --git a/src/well-known/traffic-advice.liquid b/src/well-known/traffic-advice.liquid new file mode 100644 index 00000000..c3563998 --- /dev/null +++ b/src/well-known/traffic-advice.liquid @@ -0,0 +1,11 @@ +--- +permalink: '.well-known/traffic-advice' +eleventyExcludeFromCollections: true +dynamicPermalink: false +--- +[{ + "user_agent": "prefetch-proxy", + "google_prefetch_proxy_eap": { + "fraction": 1.0 + } +}] \ No newline at end of file diff --git a/src/feeds/webfinger.liquid b/src/well-known/webfinger.liquid similarity index 100% rename from src/feeds/webfinger.liquid rename to src/well-known/webfinger.liquid