diff --git a/hosts/nixos/hs/proxy.nix b/hosts/nixos/hs/proxy.nix deleted file mode 100644 index da7f48c..0000000 --- a/hosts/nixos/hs/proxy.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ config, ... }: - -{ - # Traefik dynamic configuration for hs host - services.traefik.dynamicConfigOptions = { - http = { - routers = { - syncthing = { - rule = "Host(`syncthing.${config.networking.hostName}.yanlincs.com`)"; - service = "syncthing"; - tls = { - certResolver = "cloudflare"; - domains = [{ - main = "*.${config.networking.hostName}.yanlincs.com"; - }]; - }; - }; - - jellyfin = { - rule = "Host(`jellyfin.${config.networking.hostName}.yanlincs.com`)"; - service = "jellyfin"; - tls = { - certResolver = "cloudflare"; - domains = [{ - main = "*.${config.networking.hostName}.yanlincs.com"; - }]; - }; - }; - - plex = { - rule = "Host(`plex.${config.networking.hostName}.yanlincs.com`)"; - service = "plex"; - tls = { - certResolver = "cloudflare"; - domains = [{ - main = "*.${config.networking.hostName}.yanlincs.com"; - }]; - }; - }; - - }; - - services = { - syncthing = { - loadBalancer = { - servers = [{ - url = "http://127.0.0.1:8384"; - }]; - }; - }; - - jellyfin = { - loadBalancer = { - servers = [{ - url = "http://127.0.0.1:8096"; - }]; - }; - }; - - plex = { - loadBalancer = { - servers = [{ - url = "http://127.0.0.1:32400"; - }]; - }; - }; - - }; - }; - }; -} diff --git a/hosts/nixos/hs/system.nix b/hosts/nixos/hs/system.nix index bfd4dbd..c57c474 100644 --- a/hosts/nixos/hs/system.nix +++ b/hosts/nixos/hs/system.nix @@ -2,11 +2,9 @@ imports = [ ./hardware-configuration.nix ./containers.nix - ./proxy.nix ../system-default.nix ../../../modules/tailscale.nix ../../../modules/podman.nix - ../../../modules/traefik.nix ../../../modules/borg/client.nix ../../../modules/login-display.nix ../../../modules/samba.nix