2022-02-13 14:45:13 -05:00
|
|
|
daemon off;
|
|
|
|
worker_processes 1;
|
|
|
|
error_log stderr;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 32;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
access_log /dev/stdout;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name two.example.org;
|
|
|
|
|
|
|
|
ssl_certificate /etc/prosody/certs/two.example.org.crt;
|
|
|
|
ssl_certificate_key /etc/prosody/certs/two.example.org.key;
|
|
|
|
|
|
|
|
location = /.well-known/host-meta.json {
|
|
|
|
default_type application/json;
|
2022-03-24 22:49:50 -04:00
|
|
|
return 200 '{
|
|
|
|
"links": [
|
|
|
|
{
|
|
|
|
"rel": "urn:xmpp:alt-connections:s2s-websocket",
|
|
|
|
"href": "wss://xp2.example.org:5281/xmpp-websocket",
|
|
|
|
"ips": [
|
|
|
|
"192.5.0.50"
|
|
|
|
],
|
|
|
|
"priority": 15,
|
|
|
|
"weight": 50,
|
|
|
|
"sni": "xp2.example.org"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rel": "urn:xmpp:alt-connections:websocket",
|
|
|
|
"href": "wss://xp2.example.org:5281/xmpp-websocket"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}';
|
2022-02-13 14:45:13 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|