0
0
Fork 0
xmpp-server/etc/caddy/conf.d/telepath.caddy
2024-07-23 23:05:37 +02:00

32 lines
1.1 KiB
Text

telepath.im www.telepath.im {
# Website
root * /var/www/html/telepath
file_server
# XMPP host-meta
header /.well-known/host-meta Access-Control-Allow-Origin "*"
header /.well-known/host-meta.json Access-Control-Allow-Origin "*"
header /.well-known/host-meta Content-Type application/xml
header /.well-known/host-meta.json Content-Type application/json
respond /.well-known/host-meta 200 {
body `<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
<Link rel="urn:xmpp:alt-connections:xbosh" href="https://hypertext.telepath.im/http-bind/"/>
<Link rel="urn:xmpp:alt-connections:websocket" href="wss://hypertext.telepath.im/xmpp-websocket/"/>
</XRD>`
}
respond /.well-known/host-meta.json 200 {
body `{"links":[{"rel":"urn:xmpp:alt-connections:xbosh","href":"https://hypertext.telepath.im/http-bind"},{"rel":"urn:xmpp:alt-connections:websocket/","href":"wss://hypertext.telepath.im/xmpp-websocket/"}]}`
}
}
# XMPP HTTP stuff
xmpp.telepath.im {
reverse_proxy localhost:5280
}
# XMPP HTTP file upload service
hypertext.telepath.im {
reverse_proxy localhost:5280
}