diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 0631b2e..32a53fa 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -20,6 +20,7 @@ in { upstreams = { mango.servers."${tsHost "mango" 6167}" = {}; + hsb.servers."${tsHost "hsb" 8080}" = {}; }; virtualHosts = { @@ -50,6 +51,25 @@ in { ''; }; + "happ.ystatic.buzz" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + proxy_pass = "http://hsb"; + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme + ''; + }; + extraConfig = '' + client_max_body_size 40M; + ''; + }; + # Generic store for /.well-known/ paths. "well-known.sapphic.engineer" = { #serverAliases = [ "sapphic.engineer" ];