diff --git a/hosts/koi/containers/puffer.nix b/hosts/koi/containers/puffer.nix index 747801f..b66db14 100644 --- a/hosts/koi/containers/puffer.nix +++ b/hosts/koi/containers/puffer.nix @@ -180,5 +180,31 @@ in (secrets.declare [ "sftpgo-ed25519" ]) container ]; + + services.nginx.virtualHosts."puffer.stupid.fish" = { + forceSSL = true; + useACMEHost = "stupid.fish"; + + locations."/public/" = { + extraConfig = '' + alias /mnt/puffer/Public/; + autoindex on; + ''; + }; + + locations."/downloads/" = { + extraConfig = '' + alias /mnt/puffer/Downloads/; + autoindex on; + ''; + }; + + locations."= /" = { + extraConfig = '' + add_header 'Content-Type' 'text/html; charset=utf-8'; + return 200 '

🐡 puffer

public
downloads'; + ''; + }; + }; } diff --git a/hosts/koi/services/coredns.nix b/hosts/koi/services/coredns.nix index dada9b8..066ca38 100644 --- a/hosts/koi/services/coredns.nix +++ b/hosts/koi/services/coredns.nix @@ -11,6 +11,7 @@ let 10.42.0.2 very.stupid.fish 10.42.0.5 puffer.stupid.fish 10.42.0.8 bnuuy.stupid.fish + 10.42.0.2 puffer.stupid.fish ''; package = coredns.override {