Compare commits
No commits in common. "13a386fe98b5b2bb500a6b371f026e1b1101cbd6" and "f2afa788176f11dff4a64792c7b9649d279ca15c" have entirely different histories.
13a386fe98
...
f2afa78817
2 changed files with 0 additions and 34 deletions
|
|
@ -61,25 +61,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.atticd-gc = {
|
||||
description = "Attic garbage collection";
|
||||
requires = [ "atticd.service" ];
|
||||
after = [ "atticd.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.attic-server}/bin/atticd-atticadm gc";
|
||||
EnvironmentFile = "/etc/atticd.env";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers.atticd-gc = {
|
||||
description = "Daily Attic garbage collection";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "1h";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,14 +56,6 @@
|
|||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
appendHttpConfig = ''
|
||||
proxy_cache_path /var/cache/nginx/attic
|
||||
levels=1:2
|
||||
keys_zone=attic:10m
|
||||
max_size=10g
|
||||
inactive=30d
|
||||
use_temp_path=off;
|
||||
'';
|
||||
virtualHosts."attic.teepot.org" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
@ -72,11 +64,6 @@
|
|||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 0;
|
||||
proxy_cache attic;
|
||||
proxy_cache_valid 200 30d;
|
||||
proxy_cache_use_stale error timeout updating;
|
||||
proxy_cache_methods GET HEAD;
|
||||
proxy_cache_bypass $request_method;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue