Compare commits
2 commits
759a9c7c0c
...
95b5d4b3bd
Author | SHA1 | Date | |
---|---|---|---|
Tristan Daniël Maat | 95b5d4b3bd | ||
Tristan Daniël Maat | eb3bd485c4 |
|
@ -153,7 +153,12 @@
|
||||||
services.logrotate = {
|
services.logrotate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = lib.mapAttrs' (virtualHost: _:
|
settings =
|
||||||
|
{
|
||||||
|
# Override the default, just keep fewer logs
|
||||||
|
nginx.rotate = 6;
|
||||||
|
}
|
||||||
|
// lib.mapAttrs' (virtualHost: _:
|
||||||
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
|
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
|
||||||
frequency = "daily";
|
frequency = "daily";
|
||||||
rotate = 2;
|
rotate = 2;
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
config.services.victoriametrics = {
|
config.services.victoriametrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraOptions = [
|
||||||
|
"-storage.minFreeDiskSpaceBytes=5GB"
|
||||||
|
];
|
||||||
|
|
||||||
scrapeConfigs = {
|
scrapeConfigs = {
|
||||||
gitea = {
|
gitea = {
|
||||||
|
|
Loading…
Reference in a new issue