From 2e6aa4d73300f1237ef45c465c3b26b32ffd72c0 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 3 Nov 2023 18:16:22 +0530 Subject: [PATCH] discord domain thingy --- hosts/rico2/services/adtya.xyz.nix | 6 ++++++ secrets.nix | Bin 3696 -> 3773 bytes 2 files changed, 6 insertions(+) diff --git a/hosts/rico2/services/adtya.xyz.nix b/hosts/rico2/services/adtya.xyz.nix index c75e8d0..c245a48 100644 --- a/hosts/rico2/services/adtya.xyz.nix +++ b/hosts/rico2/services/adtya.xyz.nix @@ -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 diff --git a/secrets.nix b/secrets.nix index 8306a169ed9b1dcd5ac1c3ca878531a4a04b9b93..ce5745fd14bc7c18c6660620b6f418f44ae8a3a4 100644 GIT binary patch literal 3773 zcmV;u4npw&M@dveQdv+`05njfGMr2S67nV@k1QgKw5Y*|h6!%Y;|N+bn)_r*i`V9! zw!z+$uh=X82o~wVI9vH%;Xwz4l`G7ayG?@=cmCRaUol^5MRW>*&V>ZozyUHV3mfzL zyrdRY=+3H3KqqcGI!|<(d&Lg%=CR*9zVy*r#*(A6!aNl~?jFt>`PxSgV4X`^B79)x zO8)*=ppvE2zwSpL$c+~+?e{Kqb(6e`wp(zW$s?4Sb)SX*N$ycJI4;b&mXU8 zfi5mW&`WTXlSSE`QFgkEXcu}{-ll=`q3vB{#t2?4{Qa0Of=R5eYSwTGIzk0A!NtWZOR zjP>8Hj9jF{tGb)1kk_ljJ z=bxLtZWt;<{IyTev^PeHE>J!w`?o%*J|- zWgMT@JhL>nPPCmRut4tvIgPt;u;p}xCV0|CCcCMCb8Td20dhde$F+J!F0fWk&cTM= ztm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