discord domain thingy

This commit is contained in:
Adithya 2023-11-03 18:16:22 +05:30
parent 818f9bc453
commit 2e6aa4d733
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 6 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{
pkgs,
adtya-xyz,
secrets,
...
}: let
system = pkgs.system;
@ -21,6 +22,11 @@ in {
respond `{"m.homeserver": {"base_url": "https://matrix.adtya.xyz:443"}}`
}
handle /.well-known/discord {
header Access-Control-Allow-Origin *
respond `${secrets.discord_domain_well_known}`
}
handle {
root * ${adtya-xyz.packages.${system}.default}/share/web
encode gzip

Binary file not shown.