From e8e469f2a9e63fc4c173bf0f7db1cc79170aba3b Mon Sep 17 00:00:00 2001 From: kB01 Date: Sat, 30 Nov 2024 02:19:06 +0100 Subject: [PATCH] Trying to Connect to VMs 8080 Port --- modules/nixos/services/nas/audiobookshelf.nix | 4 ++-- modules/nixos/services/nas/traefik-proxy.nix | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/nixos/services/nas/audiobookshelf.nix b/modules/nixos/services/nas/audiobookshelf.nix index ac35561..c95916f 100644 --- a/modules/nixos/services/nas/audiobookshelf.nix +++ b/modules/nixos/services/nas/audiobookshelf.nix @@ -20,9 +20,9 @@ in services.traefik.dynamicConfigOptions = { http.routers.audiobookshelf.entrypoints = "websecure"; http.routers.audiobookshelf.tls = true; - http.routers.audiobookshelf.rule = "Host(`audiobookshelf.U3ncSovm`)"; + http.routers.audiobookshelf.rule = "Host(`audiobookshelf.localhost`)"; http.routers.audiobookshelf.service = "audiobookshelf"; - services.audiobookshelf.loadBalancer.servers = [ { url = "http://localhost:63001"; } ]; + services.audiobookshelf.loadBalancer.servers = [ { url = "http://localhost:63001/"; } ]; }; }; } diff --git a/modules/nixos/services/nas/traefik-proxy.nix b/modules/nixos/services/nas/traefik-proxy.nix index ad946f1..8e97556 100644 --- a/modules/nixos/services/nas/traefik-proxy.nix +++ b/modules/nixos/services/nas/traefik-proxy.nix @@ -17,6 +17,17 @@ in staticConfigOptions = { entryPoints.web.address = ":80"; entryPoints.websecure.address = ":443"; + api = { + insecure = true; + }; + }; + dynamicConfigOptions = { + # http.routers.dashboard.entrypoints = "websecure"; + # http.routers.dashboard.tls = true; + # http.routers.dashboard.rule = "Host(`traefik.localhost`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"; + # http.routers.dashboard.service = "api@internal"; + # http.routers.dashboard.middlewares = "auth"; + # http.middlewares.auth.basicauth.users = "master:\$\$2y\$\$05\$\$YWM0ZknINeHpJsNqqsd91eF/yl.S8t12TPQsDmf92glrjGW9Y1RvO"; }; }; };