From af32ed418f5cca78807d97a03aa311ab33d13bde Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 16 Nov 2025 21:54:41 +0100 Subject: [PATCH] add files local proxy --- hosts/nixos/hs/proxy.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/nixos/hs/proxy.nix b/hosts/nixos/hs/proxy.nix index 0af849b..da6b2f9 100644 --- a/hosts/nixos/hs/proxy.nix +++ b/hosts/nixos/hs/proxy.nix @@ -16,6 +16,17 @@ }; }; + files = { + rule = "Host(`files.${config.networking.hostName}.yanlincs.com`)"; + service = "files"; + tls = { + certResolver = "cloudflare"; + domains = [{ + main = "*.${config.networking.hostName}.yanlincs.com"; + }]; + }; + }; + }; services = { @@ -27,6 +38,14 @@ }; }; + files = { + loadBalancer = { + servers = [{ + url = "http://localhost:5099"; + }]; + }; + }; + }; }; };