mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/nginx: create 127.0.0.1 alias for status page
This commit is contained in:
parent
08b573cd04
commit
449a963b0e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue