discord domain thingy
This commit is contained in:
parent
818f9bc453
commit
2e6aa4d733
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
BIN
secrets.nix
BIN
secrets.nix
Binary file not shown.
Loading…
Reference in a new issue