.
This commit is contained in:
parent
18ebde767e
commit
478f26a9b8
2 changed files with 10 additions and 10 deletions
|
|
@ -29,7 +29,7 @@ in {
|
||||||
|
|
||||||
package = pkgs.caddy.withPlugins {
|
package = pkgs.caddy.withPlugins {
|
||||||
plugins = ["github.com/corazawaf/coraza-caddy/v2@v2.1.0"];
|
plugins = ["github.com/corazawaf/coraza-caddy/v2@v2.1.0"];
|
||||||
hash = "sha256-rsDnTunR8C7hVOX5aKcba+iFYHbpWek65DZgbMxOdTs=";
|
hash = "sha256-pSXjLaZoRtKV3eFl2ySRSjl3yxi514G1Cb7pfrpxxtE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts =
|
virtualHosts =
|
||||||
|
|
|
||||||
|
|
@ -33,15 +33,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf hasPeers {
|
config = mkIf hasPeers {
|
||||||
networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
|
# networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
|
||||||
networking.wq-quick = {
|
# networking.wq-quick = {
|
||||||
# enable = cfg.enable;
|
# # enable = cfg.enable;
|
||||||
|
|
||||||
interfaces =
|
# interfaces =
|
||||||
cfg.peer
|
# cfg.peer
|
||||||
|> attrsToList
|
# |> attrsToList
|
||||||
|> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // { }));
|
# |> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // {})))
|
||||||
|> listToAttrs
|
# |> listToAttrs;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue