From 41343c3b9124a8fd694ac9bfab0c9f5472ab65db Mon Sep 17 00:00:00 2001 From: oqyude Date: Sat, 20 Sep 2025 20:51:00 +0300 Subject: [PATCH] 123 --- nixosModules/server/nginx.nix | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/nixosModules/server/nginx.nix b/nixosModules/server/nginx.nix index 1be0542..9c5408c 100755 --- a/nixosModules/server/nginx.nix +++ b/nixosModules/server/nginx.nix @@ -27,21 +27,8 @@ } ]; }; - "localhost:8890" = { - listen = [ - { - addr = "127.0.0.1"; - port = 8890; - } - { - addr = "0.0.0.0"; - port = 80; - } - { - addr = "0.0.0.0"; - port = 443; - } - ]; + "localhost" = { + listen = [{ addr = "127.0.0.1"; port = 8890; }]; }; "localhost:8890" = { forceSSL = false; @@ -55,6 +42,18 @@ addr = "192.168.1.20"; port = 8890; } + { + addr = "127.0.0.1"; + port = 8890; + } + { + addr = "0.0.0.0"; + port = 80; + } + { + addr = "0.0.0.0"; + port = 443; + } ]; }; # "localhost:9980" = {