From c7e81bdc6a116d9f0e29efda614ced0746853a7a Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 21:49:41 -0500 Subject: [PATCH] 337 current 2025-10-11 20:25:59 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/homelab/services/nginx-proxy/default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 58815a6..c97988e 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 336 current 2025-10-11 20:24:22 25.05.20251006.20c4598 6.12.50 * +# generation: 337 current 2025-10-11 20:25:59 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/nginx-proxy/default.nix b/modules/homelab/services/nginx-proxy/default.nix index 5f248a2..5b656aa 100644 --- a/modules/homelab/services/nginx-proxy/default.nix +++ b/modules/homelab/services/nginx-proxy/default.nix @@ -31,6 +31,12 @@ in ]; # static entries + services.nginx.virtualHosts."${homelab.public_domain}" = { + locations."/" = { + locations."/".proxyPass = "http://localhost:8080"; # Proxy to your backend + locations."*".return = "301 https://www.youtube.com/watch?v=dQw4w9WgXcQ"; # Redirect to YouTube video + }; + }; services.nginx.virtualHosts."key.${homelab.public_domain}" = { forceSSL = true; sslCertificate = sec."ssl_blakedheld_crt".path;