nix-config/lib/nginx.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
485 B
Nix
Raw Normal View History

2023-04-11 23:53:53 +02:00
_:
{
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;
}