Compare commits
	
		
			No commits in common. "95b5d4b3bd879783cef39f4d50f902e55548313f" and "759a9c7c0c088b1e65d22500bd66ffbae71f70ae" have entirely different histories.
		
	
	
		
			95b5d4b3bd
			...
			759a9c7c0c
		
	
		
					 2 changed files with 10 additions and 18 deletions
				
			
		|  | @ -153,21 +153,16 @@ | |||
|   services.logrotate = { | ||||
|     enable = true; | ||||
| 
 | ||||
|     settings = | ||||
|       { | ||||
|         # Override the default, just keep fewer logs | ||||
|         nginx.rotate = 6; | ||||
|       } | ||||
|       // lib.mapAttrs' (virtualHost: _: | ||||
|         lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" { | ||||
|           frequency = "daily"; | ||||
|           rotate = 2; | ||||
|           compress = true; | ||||
|           delaycompress = true; | ||||
|           su = "${config.services.nginx.user} ${config.services.nginx.group}"; | ||||
|           postrotate = "[ ! -f /var/run/nginx/nginx.pid ] || kill -USR1 `cat /var/run/nginx/nginx.pid`"; | ||||
|         }) | ||||
|       config.services.nginx.virtualHosts; | ||||
|     settings = lib.mapAttrs' (virtualHost: _: | ||||
|       lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" { | ||||
|         frequency = "daily"; | ||||
|         rotate = 2; | ||||
|         compress = true; | ||||
|         delaycompress = true; | ||||
|         su = "${config.services.nginx.user} ${config.services.nginx.group}"; | ||||
|         postrotate = "[ ! -f /var/run/nginx/nginx.pid ] || kill -USR1 `cat /var/run/nginx/nginx.pid`"; | ||||
|       }) | ||||
|     config.services.nginx.virtualHosts; | ||||
|   }; | ||||
|   systemd.tmpfiles.rules = | ||||
|     lib.mapAttrsToList ( | ||||
|  |  | |||
|  | @ -1,9 +1,6 @@ | |||
| {config, ...}: { | ||||
|   config.services.victoriametrics = { | ||||
|     enable = true; | ||||
|     extraOptions = [ | ||||
|       "-storage.minFreeDiskSpaceBytes=5GB" | ||||
|     ]; | ||||
| 
 | ||||
|     scrapeConfigs = { | ||||
|       gitea = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue