From 6c7a4648d258b9e1a541be4856d26c64b9936360 Mon Sep 17 00:00:00 2001 From: oqyude Date: Mon, 6 Oct 2025 22:52:30 +0300 Subject: [PATCH] 123 --- nixosModules/vds/nginx.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index f07f113..20c318f 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -56,9 +56,19 @@ in enableACME = true; forceSSL = true; kTLS = true; - locations."/" = { - proxyPass = "http://${server}:8000"; - proxyWebsockets = true; + locations = { + "/" = { + proxyPass = "http://${server}:8000"; # API и coauthoring + proxyWebsockets = true; + }; + "/web-apps/" = { + proxyPass = "http://${server}:8000/web-apps/"; # фронтенд + proxyWebsockets = true; + }; + "/coauthoring/" = { + proxyPass = "http://${server}:8000/coauthoring/"; # coauthoring WS + proxyWebsockets = true; + }; }; extraConfig = '' client_max_body_size 5G;