mautrix autoconfig

This commit is contained in:
Jade Ellis 2024-11-25 01:55:13 +00:00
parent affc0ce1df
commit ea72673d32
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
export async function GET({ url }) {
const res = new Response(JSON.stringify({
"fi.mau.bridges": [
"https://mautrix-discord.ellis.link",
"https://mautrix-gmessages.ellis.link",
"https://mautrix-meta.ellis.link",
"https://mautrix-signal.ellis.link",
"https://mautrix-slack.ellis.link",
"https://mautrix-whatsapp.ellis.link"
]
}), { headers: { "content-type": "application/jrd+json" }, status: 200 })
return res;
}

View file

@ -29,7 +29,7 @@ Environment=XFF_DEPTH=1
# 'x-real-ip': '145.40.150.118'
Label="traefik.enable=true"
Label="traefik.http.routers.jade-website-frontend.rule=(Host(`jade.ellis.link`) || (Host(`ellis.link`) && Path(`/.well-known/webfinger`)))"
Label="traefik.http.routers.jade-website-frontend.rule=(Host(`jade.ellis.link`) || (Host(`ellis.link`) && (Path(`/.well-known/webfinger`) || Path(`/.well-known/matrix/mautrix`))))"
Label="traefik.http.routers.jade-website-frontend.entrypoints=https"