server9: host old archive

This commit is contained in:
Sandro - 2023-11-13 23:47:29 +01:00
parent f62a7bf461
commit 362cf35957
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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;
'';
};
}; };
}; };
}; };