Remove cruft from hydra-proxy.nix
Eelco Dolstra committed
Jul 18, 2019 at 21:48 UTC
9a70211f9a8a747628e153164bd71de85dd04730
1 file changed
-23
delft/hydra-proxy.nix
-23
@@ -2,8 +2,6 @@
2
3
let
4
5
- hydraCacheDir = "/var/cache/hydra-binary-cache";
6
-
5
hydraProxyConfig =
6
''
7
TimeOut 900
@@ -21,11 +19,6 @@ let
19
ProxyPass / http://127.0.0.1:3000/ retry=5 disablereuse=on
20
ProxyPassReverse / http://127.0.0.1:3000/
21
24
- #CacheEnable disk /
25
- #CacheRoot ${hydraCacheDir}
26
- #CacheMaxFileSize 64000000
27
- #CacheIgnoreHeaders Set-Cookie
28
-
22
<Location />
23
SetOutputFilter DEFLATE
24
BrowserMatch ^Mozilla/4\.0[678] no-gzip\
@@ -81,22 +74,6 @@ in
74
75
};
76
84
- /*
85
- system.activationScripts.createHydraCache =
86
- ''
87
- mkdir -p ${hydraCacheDir}
88
- chown wwwrun ${hydraCacheDir}
89
- '';
90
-
91
- systemd.services.htcacheclean =
92
- { description = "Clean httpd Cache";
93
- serviceConfig.ExecStart =
94
- "${config.services.httpd.package}/bin/htcacheclean " +
95
- "-v -t -l 4G -p /var/cache/hydra-binary-cache";
96
- startAt = "05:45";
97
- };
98
- */
99
-
77
# Let's Encrypt configuration.
78
security.acme.certs."hydra.nixos.org" =
79
{ email = "edolstra@gmail.com";