feat: Include XMPP alt-connect data

This commit is contained in:
PapaTutuWawa 2023-01-21 15:06:29 +01:00
parent a99d8fbaba
commit 7dd4ca5cb3
3 changed files with 21 additions and 0 deletions

View File

@ -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

7
well-known/host-meta Normal file
View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
<Link rel="urn:xmpp:alt-connections:xbosh"
href="https://http.xmpp.polynom.me:443/http-bind" />
<Link rel="urn:xmpp:alt-connections:websocket"
href="wss://http.xmpp.polynom.me:443/xmpp-websocket" />
</XRD>

12
well-known/host-meta.json Normal file
View File

@ -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"
}
]
}