Skip to content

Commit

Permalink
Merge: nixos/nginx: create 127.0.0.1 alias for status page (NixOS#349536
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ma27 authored Oct 24, 2024
2 parents 8b052aa + 449a963 commit e7d6314
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/web-servers/nginx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,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 "[::]");
Expand Down

0 comments on commit e7d6314

Please sign in to comment.