From 0ab08e4d469713384172021661f7f1ae2bc8eb69 Mon Sep 17 00:00:00 2001 From: 1sixth <1sixth@shinta.ro> Date: Mon, 26 Aug 2024 17:37:19 +0800 Subject: [PATCH] nas: smokeping: do not host on subpath Otherwise some functions won't work. --- nixos/nas/smokeping.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/nixos/nas/smokeping.nix b/nixos/nas/smokeping.nix index cd29b0fc..dec3d63d 100644 --- a/nixos/nas/smokeping.nix +++ b/nixos/nas/smokeping.nix @@ -242,19 +242,8 @@ ''; }; traefik.dynamicConfigOptions.http = { - middlewares = { - smokeping-redirect.redirectregex = { - regex = "^(.*)/smokeping$"; - replacement = "$1/smokeping/"; - }; - smokeping-strip.stripprefix.prefixes = [ "/smokeping" ]; - }; routers.smokeping = { - middlewares = [ - "smokeping-redirect" - "smokeping-strip" - ]; - rule = "Host(`${config.networking.hostName}.9875321.xyz`) && PathPrefix(`/smokeping`)"; + rule = "Host(`${config.networking.hostName}.9875321.xyz`)"; service = "smokeping"; }; services.smokeping.loadBalancer.servers = [