From 17a66ab26105b03882e6b71c223da497675fecc3 Mon Sep 17 00:00:00 2001 From: oqyude Date: Sun, 17 Aug 2025 14:37:37 +0300 Subject: [PATCH] 123 --- nixosModules/vds/nginx.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index 052cb54..d555323 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -2,6 +2,9 @@ config, ... }: +let + server = "100.64.0.0"; +in { services = { nginx = { @@ -16,7 +19,7 @@ forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://sapphira.laxta-platy.ts.net:2283"; # Порт Immich + proxyPass = "http://${server}:2283"; # Порт Immich proxyWebsockets = true; # Если Immich использует WebSockets }; }; @@ -24,18 +27,18 @@ forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://sapphira.laxta-platy.ts.net:10000"; # Порт Nextcloud - proxyWebsockets = true; - }; - }; - "llm.zeroq.ru" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://atoridu.laxta-platy.ts.net:11111"; # Порт Open WebUI + proxyPass = "http://${server}:10000"; # Порт Nextcloud proxyWebsockets = true; }; }; + # "llm.zeroq.ru" = { + # forceSSL = true; + # enableACME = true; + # locations."/" = { + # proxyPass = "http://atoridu.laxta-platy.ts.net:11111"; # Порт Open WebUI + # proxyWebsockets = true; + # }; + # }; }; }; };