feat: Include XMPP alt-connect data
This commit is contained in:
parent
a99d8fbaba
commit
7dd4ca5cb3
2
Makefile
2
Makefile
@ -12,6 +12,7 @@ serve:
|
|||||||
--include robots.txt
|
--include robots.txt
|
||||||
# A workaround to making the fonts load without the CDN
|
# A workaround to making the fonts load without the CDN
|
||||||
mv _site/assets/fonts _site/fonts
|
mv _site/assets/fonts _site/fonts
|
||||||
|
cp -r well-known _site/.well-known
|
||||||
cd _site/ && python -m http.server 8080
|
cd _site/ && python -m http.server 8080
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@ -22,4 +23,5 @@ build:
|
|||||||
--assets ./assets \
|
--assets ./assets \
|
||||||
--copy-assets \
|
--copy-assets \
|
||||||
--include robots.txt
|
--include robots.txt
|
||||||
|
cp -r well-known _site/.well-known
|
||||||
tar -czf blog.tar.gz _site
|
tar -czf blog.tar.gz _site
|
||||||
|
7
well-known/host-meta
Normal file
7
well-known/host-meta
Normal 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
12
well-known/host-meta.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user