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;