forked from fi/nix-infra
Add janky nginx config with workaround for proxy protocol
This commit is contained in:
parent
ade955bdf4
commit
ecfe325c9c
14 changed files with 343 additions and 281 deletions
32
hosts/web-public-2/virtualHosts/nextcloud.grzb.de.nix
Normal file
32
hosts/web-public-2/virtualHosts/nextcloud.grzb.de.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."nextcloud.grzb.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
listen = [ {
|
||||
addr = "0.0.0.0";
|
||||
port = 80;
|
||||
}{
|
||||
addr = "localhost";
|
||||
port = 8443;
|
||||
ssl = true;
|
||||
proxyProtocol = true;
|
||||
}];
|
||||
locations."/" = {
|
||||
proxyPass = "http://nextcloud.vs.grzb.de:80";
|
||||
};
|
||||
locations."= /.well-known/carddav" = {
|
||||
return = "301 $scheme://$host/remote.php/dav";
|
||||
};
|
||||
locations."= /.well-known/caldav" = {
|
||||
return = "301 $scheme://$host/remote.php/dav";
|
||||
extraConfig = ''
|
||||
proxy_read_timeout 3600;
|
||||
proxy_request_buffering off;
|
||||
'';
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size 4096m;
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue