server9: host old archive
This commit is contained in:
parent
f62a7bf461
commit
362cf35957
|
@ -46,16 +46,27 @@
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
additionalModules = [ pkgs.nginxModules.fancyindex ];
|
||||||
virtualHosts."server9.cluster.zentralwerk.org" = {
|
virtualHosts."server9.cluster.zentralwerk.org" = {
|
||||||
default = true;
|
default = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/restic/" = {
|
locations = {
|
||||||
proxyPass = "http://${config.services.restic.server.listenAddress}/";
|
"/archive".return = "307 /archive/";
|
||||||
extraConfig = ''
|
"/archive/" = {
|
||||||
client_max_body_size 40M;
|
alias = "/tank/owncloud-archive/";
|
||||||
proxy_buffering off;
|
extraConfig = ''
|
||||||
'';
|
fancyindex on;
|
||||||
|
fancyindex_exact_size off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"/restic/" = {
|
||||||
|
proxyPass = "http://${config.services.restic.server.listenAddress}/";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 40M;
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user