From f41426b657c107a18226175f4df0a25cfc5afa4b Mon Sep 17 00:00:00 2001 From: sevichecc <91365763+Sevichecc@users.noreply.github.com> Date: Mon, 14 Nov 2022 21:54:49 +0800 Subject: [PATCH] feat:add pleroma redirect --- netlify.toml | 5 +++++ urara/.well-known/webfinger | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 urara/.well-known/webfinger diff --git a/netlify.toml b/netlify.toml index a63b2828..2fe68d06 100644 --- a/netlify.toml +++ b/netlify.toml @@ -33,6 +33,11 @@ node_bundler = "esbuild" Content-Security-Policy = "style-src 'self' 'unsafe-inline' https://cdn.commento.io/css/commento.css http://fonts.cdnfonts.com/css/lato ; script-src 'self' 'unsafe-inline' https://*.seviche.cc https://giscus.app https://hexoverc.vercel.app/umami.js https://cdn.splitbee.io/sb.js https://cdn.commento.io/js/commento.js" Referrer-Policy = "strict-origin-when-cross-origin" Permissions-Policy = "usb=()" +[[redirects]] + from = "/.well-known/webfinger" + to = "https://kongwoo.icu/.well-known/webfinger?resource=acct:blog@kongwoo.icu" + status = 302 + force = true [[redirects]] from = "/.well-known/host-meta" diff --git a/urara/.well-known/webfinger b/urara/.well-known/webfinger new file mode 100644 index 00000000..355dc23e --- /dev/null +++ b/urara/.well-known/webfinger @@ -0,0 +1,27 @@ +{ + "aliases": [ + "https://kongwoo.icu/users/blog" + ], + "links": [ + { + "href": "https://kongwoo.icu/users/blog", + "rel": "http://webfinger.net/rel/profile-page", + "type": "text/html" + }, + { + "href": "https://kongwoo.icu/users/blog", + "rel": "self", + "type": "application/activity+json" + }, + { + "href": "https://kongwoo.icu/users/blog", + "rel": "self", + "type": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" + }, + { + "rel": "http://ostatus.org/schema/1.0/subscribe", + "template": "https://kongwoo.icu/ostatus_subscribe?acct={uri}" + } + ], + "subject": "acct:blog@kongwoo.icu" +}