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
1 changed files with 17 additions and 6 deletions

View File

@ -46,16 +46,27 @@
nginx = {
enable = true;
additionalModules = [ pkgs.nginxModules.fancyindex ];
virtualHosts."server9.cluster.zentralwerk.org" = {
default = true;
forceSSL = true;
enableACME = true;
locations."/restic/" = {
proxyPass = "http://${config.services.restic.server.listenAddress}/";
extraConfig = ''
client_max_body_size 40M;
proxy_buffering off;
'';
locations = {
"/archive".return = "307 /archive/";
"/archive/" = {
alias = "/tank/owncloud-archive/";
extraConfig = ''
fancyindex on;
fancyindex_exact_size off;
'';
};
"/restic/" = {
proxyPass = "http://${config.services.restic.server.listenAddress}/";
extraConfig = ''
client_max_body_size 40M;
proxy_buffering off;
'';
};
};
};
};