From 45f352f9cb3bdc16048a0f0d70eef6a59272472b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 23 Aug 2021 13:06:15 -0400 Subject: Fix GitHub OAuth args This makes it explicit that we are using GitHub vs some other OAuth args. The idea is that we should be making a new type for every service, this allows us to have type safety in the implementation but a common set or pattern of names for the environment variables and record fields. Also using 'notset' instead of 'mempty' is really helpful for debugging when this breaks, as I found out. --- Biz/Cloud/Web.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 853c967..9899258 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -118,6 +118,12 @@ in useACMEHost = rootDomain; }; + "devalloc.io" = { + forceSSL = true; + useACMEHost = rootDomain; + globalRedirect = "dragons.dev"; + }; + "dragons.dev" = { locations."/".proxyPass = "http://${ports.bensIp}:${toString ports.dragons}"; forceSSL = true; @@ -166,7 +172,7 @@ in # This must contain all of the other domains we host security.acme.certs.${rootDomain}.extraDomainNames = [ "bsima.me" "www.bsima.me" - "dragons.dev" + "dragons.dev" "devalloc.io" ] ++ map (sub: "${sub}.${rootDomain}") [ "tv" "matrix" -- cgit v1.2.3