server9: host old archive
This commit is contained in:
parent
f62a7bf461
commit
362cf35957
|
@ -46,11 +46,21 @@
|
||||||
|
|
||||||
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 = {
|
||||||
|
"/archive".return = "307 /archive/";
|
||||||
|
"/archive/" = {
|
||||||
|
alias = "/tank/owncloud-archive/";
|
||||||
|
extraConfig = ''
|
||||||
|
fancyindex on;
|
||||||
|
fancyindex_exact_size off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"/restic/" = {
|
||||||
proxyPass = "http://${config.services.restic.server.listenAddress}/";
|
proxyPass = "http://${config.services.restic.server.listenAddress}/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 40M;
|
client_max_body_size 40M;
|
||||||
|
@ -59,6 +69,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# reserve resources for libvirt VMs
|
# reserve resources for libvirt VMs
|
||||||
# nomad.settings.client.reserved = {
|
# nomad.settings.client.reserved = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user