nextcloud: last step, but nextcloud.workhorse.private is not working

This commit is contained in:
Ingolf Wagner 2020-03-04 18:30:45 +08:00
parent 1b038eb60c
commit 83dce16818
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -32,7 +32,7 @@
config.adminpassFile = toString <secrets/nextcloud/rootpassword>; config.adminpassFile = toString <secrets/nextcloud/rootpassword>;
nginx.enable = true; nginx.enable = true;
hostName = "nextcloud.workhorse.private"; hostName = "nextcloud.workhorse.private";
logLevel = 0; logLevel = 2;
config.extraTrustedDomains = [ config.extraTrustedDomains = [
"nextcloud.ingolf-wagner.de" "nextcloud.ingolf-wagner.de"
"nextcloud.gaykraft.com" "nextcloud.gaykraft.com"
@ -40,7 +40,9 @@
]; ];
}; };
environment.systemPackages = [ pkgs.smbclient ]; environment.systemPackages = [
pkgs.smbclient
];
}; };
}; };
@ -63,19 +65,12 @@
locations."/" = { locations."/" = {
proxyPass = "http://192.168.100.11"; proxyPass = "http://192.168.100.11";
extraConfig = '' extraConfig = ''
client_max_body_size 0;
# rewrite response bodies # rewrite response bodies
# ----------------------- # -----------------------
sub_filter "192.168.100.11" "nextcloud.workhorse.private"; 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;
''; '';
}; };
}; };