From b59493a9c9e5d57019e8402a89e227ef6f3af958 Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 24 Sep 2025 18:58:25 +0300 Subject: [PATCH] 123 --- nixosModules/server/nextcloud.nix | 4 ++-- nixosModules/server/nginx.nix | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/nixosModules/server/nextcloud.nix b/nixosModules/server/nextcloud.nix index ceadbbf..fbc25fa 100755 --- a/nixosModules/server/nextcloud.nix +++ b/nixosModules/server/nextcloud.nix @@ -17,14 +17,14 @@ in nextcloud-whiteboard-server = { enable = true; settings = { - NEXTCLOUD_URL = "https://nextcloud.zeroq.ru"; + NEXTCLOUD_URL = "https://nextcloud.local"; }; secrets = [ "${inputs.zeroq-credentials}/services/nextcloud/jwt-secret.txt" ]; }; nextcloud = { enable = true; package = pkgs.nextcloud31; - hostName = "localhost:10000"; + hostName = "nextcloud.local"; database.createLocally = true; home = "/mnt/nextcloud"; configureRedis = true; diff --git a/nixosModules/server/nginx.nix b/nixosModules/server/nginx.nix index ac45e3d..b8a1b9a 100755 --- a/nixosModules/server/nginx.nix +++ b/nixosModules/server/nginx.nix @@ -13,7 +13,7 @@ recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts = { - "localhost:10000" = { + "nextcloud.local" = { forceSSL = false; enableACME = false; listen = [ @@ -25,6 +25,10 @@ addr = "192.168.1.20"; port = 10000; } + locations."/whiteboard" = { + proxyPass = "http://${server}:3002"; + proxyWebsockets = true; + }; ]; }; # "trilium" = { @@ -45,7 +49,7 @@ forceSSL = false; enableACME = false; locations."/" = { - proxyPass = "onlyoffice.local"; + proxyPass = "http://onlyoffice.local:8000"; proxyWebsockets = true; }; extraConfig = ''