nixos/nginx: create 127.0.0.1 alias for status page
This commit is contained in:
parent
08b573cd04
commit
449a963b0e
@ -1226,6 +1226,7 @@ in
|
||||
++ lib.optional cfg.recommendedZstdSettings pkgs.nginxModules.zstd;
|
||||
|
||||
services.nginx.virtualHosts.localhost = mkIf cfg.statusPage {
|
||||
serverAliases = [ "127.0.0.1" ] ++ lib.optional config.networking.enableIPv6 "[::1]";
|
||||
listenAddresses = lib.mkDefault ([
|
||||
"0.0.0.0"
|
||||
] ++ lib.optional enableIPv6 "[::]");
|
||||
|
Loading…
Reference in New Issue
Block a user