nextcloud: last step, but nextcloud.workhorse.private is not working
This commit is contained in:
parent
1b038eb60c
commit
83dce16818
1 changed files with 5 additions and 10 deletions
|
@ -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;
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue