From 83dce1681800431cfc5859b0b85b2fb376658a85 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 4 Mar 2020 18:30:45 +0800 Subject: [PATCH] nextcloud: last step, but nextcloud.workhorse.private is not working --- configs/workhorse/nextcloud.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/configs/workhorse/nextcloud.nix b/configs/workhorse/nextcloud.nix index e9093d8..3344aed 100644 --- a/configs/workhorse/nextcloud.nix +++ b/configs/workhorse/nextcloud.nix @@ -32,7 +32,7 @@ config.adminpassFile = toString ; nginx.enable = true; hostName = "nextcloud.workhorse.private"; - logLevel = 0; + logLevel = 2; config.extraTrustedDomains = [ "nextcloud.ingolf-wagner.de" "nextcloud.gaykraft.com" @@ -40,7 +40,9 @@ ]; }; - environment.systemPackages = [ pkgs.smbclient ]; + environment.systemPackages = [ + pkgs.smbclient + ]; }; }; @@ -63,19 +65,12 @@ locations."/" = { proxyPass = "http://192.168.100.11"; extraConfig = '' + client_max_body_size 0; # rewrite response bodies # ----------------------- sub_filter "192.168.100.11" "nextcloud.workhorse.private"; - # rewrite redirects - # ----------------- - #proxy_redirect http://192.168.100.11:80/ http://$host:$server_port/; - #proxy_redirect 192.168.100.11 nextcloud.workhorse.private; - - # allow big uploads - # ----------------- - client_max_body_size 0; ''; }; };