2023-10-21 17:55:11 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./default.nix ];
|
2023-05-11 11:54:42 +01:00
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
2023-05-17 17:10:18 +01:00
|
|
|
routers.adguard = {
|
|
|
|
rule = "Host(`guard.xenia.me.uk`)";
|
2023-10-21 17:55:11 +01:00
|
|
|
entryPoints = [ "http" "https" ];
|
2023-05-17 17:10:18 +01:00
|
|
|
service = "adguard-webinterface";
|
2023-10-26 17:22:47 +01:00
|
|
|
middlewares = [ "auth" ];
|
2023-10-21 17:55:11 +01:00
|
|
|
tls = { certResolver = "default"; };
|
2023-05-17 17:10:18 +01:00
|
|
|
};
|
2023-10-21 17:55:11 +01:00
|
|
|
services.adguard-webinterface.loadBalancer.servers =
|
2023-10-27 05:56:55 +01:00
|
|
|
[{ url = "http://localhost:3200"; }];
|
2023-05-07 18:20:26 +01:00
|
|
|
};
|
|
|
|
}
|