.
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 {
|
||||
plugins = ["github.com/corazawaf/coraza-caddy/v2@v2.1.0"];
|
||||
hash = "sha256-rsDnTunR8C7hVOX5aKcba+iFYHbpWek65DZgbMxOdTs=";
|
||||
hash = "sha256-pSXjLaZoRtKV3eFl2ySRSjl3yxi514G1Cb7pfrpxxtE=";
|
||||
};
|
||||
|
||||
virtualHosts =
|
||||
|
|
|
|||
|
|
@ -33,15 +33,15 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf hasPeers {
|
||||
networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
|
||||
networking.wq-quick = {
|
||||
# enable = cfg.enable;
|
||||
# networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
|
||||
# networking.wq-quick = {
|
||||
# # enable = cfg.enable;
|
||||
|
||||
interfaces =
|
||||
cfg.peer
|
||||
|> attrsToList
|
||||
|> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // { }));
|
||||
|> listToAttrs
|
||||
};
|
||||
# interfaces =
|
||||
# cfg.peer
|
||||
# |> attrsToList
|
||||
# |> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // {})))
|
||||
# |> listToAttrs;
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue