nixos/nginx: create 127.0.0.1 alias for status page

This commit is contained in:
Ryan Horiguchi 2024-10-18 15:12:48 +02:00
parent 08b573cd04
commit 449a963b0e

View File

@ -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 "[::]");