Skip to content

Commit

Permalink
nas: smokeping: do not host on subpath
Browse files Browse the repository at this point in the history
Otherwise some functions won't work.
  • Loading branch information
1sixth committed Aug 26, 2024
1 parent bd5cc20 commit 0ab08e4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions nixos/nas/smokeping.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 0ab08e4

Please sign in to comment.