forked from c3d2/nix-config
server9: host old archive
This commit is contained in:
parent
f62a7bf461
commit
362cf35957
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user