forked from c3d2/nix-config
Add missing filte
This commit is contained in:
parent
a2215e07fd
commit
d16c05185d
|
@ -0,0 +1,29 @@
|
||||||
|
_:
|
||||||
|
|
||||||
|
{
|
||||||
|
defaultListen = let
|
||||||
|
listen = [
|
||||||
|
{
|
||||||
|
addr = "[::]";
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
addr = "[::]";
|
||||||
|
port = 443;
|
||||||
|
ssl = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
addr = "[::]";
|
||||||
|
port = 81;
|
||||||
|
extraParameters = [ "proxy_protocol" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
addr = "[::]";
|
||||||
|
port = 444;
|
||||||
|
ssl = true;
|
||||||
|
extraParameters = [ "proxy_protocol" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in
|
||||||
|
map (x: (x // { addr = "0.0.0.0"; })) listen ++ listen;
|
||||||
|
}
|
Loading…
Reference in New Issue