Tweak proposed host-meta extension, add minimal example
This commit is contained in:
parent
909f7ec94a
commit
5f05332e37
104
contrib/host-meta/xep-0156-proposed-minimal.json
Normal file
104
contrib/host-meta/xep-0156-proposed-minimal.json
Normal file
@ -0,0 +1,104 @@
|
||||
{
|
||||
"xmpp": {
|
||||
"ttl": 3000,
|
||||
"public-key-pins-sha-256": [
|
||||
"4/mggdlVx8A3pvHAWW5sD+qJyMtUHgiRuPjVC48N0XQ="
|
||||
]
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:websocket",
|
||||
"href": "wss://other.example.org/xmpp-websocket",
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 15,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1",
|
||||
"h3"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
},
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:tls",
|
||||
"port": 443,
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 10,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"xmpp-client"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
},
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:quic",
|
||||
"port": 443,
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 5,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"xmpp-client"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
},
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:s2s-websocket",
|
||||
"href": "wss://other.example.org/s2s-xmpp-websocket",
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 15,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1",
|
||||
"h3"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
},
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:s2s-tls",
|
||||
"port": 443,
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 10,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"xmpp-server"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
},
|
||||
{
|
||||
"rel": "urn:xmpp:alt-connections:s2s-quic",
|
||||
"port": 443,
|
||||
"ips": [
|
||||
"1.2.3.4",
|
||||
"fd00:feed:dad:beef::1"
|
||||
],
|
||||
"priority": 5,
|
||||
"weight": 50,
|
||||
"sni": "example.org",
|
||||
"alpn": [
|
||||
"xmpp-server"
|
||||
],
|
||||
"ech": "eG1wcC1jbGllbnQ="
|
||||
}
|
||||
]
|
||||
}
|
@ -9,9 +9,12 @@
|
||||
"http://blgx.example.net/ns/version": "1.3",
|
||||
"http://blgx.example.net/ns/ext": null
|
||||
},
|
||||
"xmpp-public-key-pins-sha-256": [
|
||||
"4/mggdlVx8A3pvHAWW5sD+qJyMtUHgiRuPjVC48N0XQ="
|
||||
],
|
||||
"xmpp": {
|
||||
"ttl": 3000,
|
||||
"public-key-pins-sha-256": [
|
||||
"4/mggdlVx8A3pvHAWW5sD+qJyMtUHgiRuPjVC48N0XQ="
|
||||
]
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "author",
|
||||
|
Loading…
Reference in New Issue
Block a user