diff --git a/nixosModules/server/nginx.nix b/nixosModules/server/nginx.nix index 7613fa0..9420499 100755 --- a/nixosModules/server/nginx.nix +++ b/nixosModules/server/nginx.nix @@ -33,11 +33,11 @@ listen = [ { addr = "100.64.0.0"; - port = 10000; + port = 11000; } { addr = "192.168.1.20"; - port = 10000; + port = 11000; } ]; }; diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index 10d0570..e0a0cf4 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -54,7 +54,19 @@ in kTLS = true; locations."/" = { proxyPass = "http://${server}:5230"; - proxyWebsockets = true; # collabora uses websockets + proxyWebsockets = true; + }; + extraConfig = '' + client_max_body_size 5G; + ''; + }; + "trilium.zeroq.ru" = { + enableACME = true; + forceSSL = true; + kTLS = true; + locations."/" = { + proxyPass = "http://${server}:11000"; + proxyWebsockets = true; }; extraConfig = '' client_max_body_size 5G;