From 4f97b182eb31546fadefff123ea56f4e603641db Mon Sep 17 00:00:00 2001 From: noe Date: Sat, 6 Jan 2024 16:01:09 -0500 Subject: [PATCH] ingress-proxy: add keysmash --- nixos/hosts/ingress-proxy/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 219dbee..41f5ad2 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -21,6 +21,7 @@ in { upstreams = { mango.servers."${tsHost "mango" 6167}" = {}; hsb.servers."${tsHost "happystaticbuzz" 8080}" = {}; + ks.servers."${tsHost "keysmash" 8080}" = {}; }; virtualHosts = let @@ -72,17 +73,23 @@ in { locations."/" = { proxyPass = "http://hsb"; proxyWebsockets = true; - #extraConfig = '' - # proxy_set_header Host "happ.ystatic.buzz"; - # proxy_set_header X-Forwarded-For $remote_addr; - # proxy_set_header X-Forwarded-Proto $scheme; - #''; }; extraConfig = '' client_max_body_size 40M; ''; }; + "keysmash.xn--q9jyb4c" = defaultConfig // { + locations."/" = { + proxyPass = "http://ks"; + proxyWebsockets = true; + }; + + extraConfig = '' + client_max_body_size 40M; + ''; + }; + "mekanoe.com" = static { url = "https://codeberg.org/noe/personal-site.git"; rev = "8601d3a426bc07c715f265b2132b384c21397533";