From 7dd4ca5cb38465d097b4e218cfe61e243d20d4c9 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 21 Jan 2023 15:06:29 +0100 Subject: [PATCH] feat: Include XMPP alt-connect data --- Makefile | 2 ++ well-known/host-meta | 7 +++++++ well-known/host-meta.json | 12 ++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 well-known/host-meta create mode 100644 well-known/host-meta.json diff --git a/Makefile b/Makefile index 9e02efb..86fb008 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ serve: --include robots.txt # A workaround to making the fonts load without the CDN mv _site/assets/fonts _site/fonts + cp -r well-known _site/.well-known cd _site/ && python -m http.server 8080 build: @@ -22,4 +23,5 @@ build: --assets ./assets \ --copy-assets \ --include robots.txt + cp -r well-known _site/.well-known tar -czf blog.tar.gz _site diff --git a/well-known/host-meta b/well-known/host-meta new file mode 100644 index 0000000..cf4aa01 --- /dev/null +++ b/well-known/host-meta @@ -0,0 +1,7 @@ + + + + + diff --git a/well-known/host-meta.json b/well-known/host-meta.json new file mode 100644 index 0000000..23876ca --- /dev/null +++ b/well-known/host-meta.json @@ -0,0 +1,12 @@ +{ + "links": [ + { + "rel": "urn:xmpp:alt-connections:xbosh", + "href": "https://http.xmpp.polynom.me:443/http-bind" + }, + { + "rel": "urn:xmpp:alt-connections:websocket", + "href": "wss://http.xmpp.polynom.me:443/xmpp-websocket" + } + ] +}