diff --git a/hosts/koi/containers/teisu.nix b/hosts/koi/containers/teisu.nix index 1b5e441..9deba5c 100644 --- a/hosts/koi/containers/teisu.nix +++ b/hosts/koi/containers/teisu.nix @@ -32,7 +32,14 @@ in { "d /srv/teisu 0755 teisu teisu -" ]; - services.nginx.virtualHosts."tei.su" = { + services.nginx.virtualHosts."tei.su" = let + serveWithTextPlain = { + proxyPass = "http://teisu.docker:4321$request_uri"; + extraConfig = '' + add_header 'Content-Type' 'text/plain'; + ''; + }; + in { forceSSL = true; useACMEHost = "tei.su"; @@ -59,5 +66,9 @@ in { internal; ''; }; + + locations."/keys" = serveWithTextPlain; + locations."/keys@ssh" = serveWithTextPlain; + locations."/keys@git" = serveWithTextPlain; }; } \ No newline at end of file