Merge remote-tracking branch 'origin/master'

This commit is contained in:
Joeri Exelmans 2025-11-06 00:08:00 +01:00
commit 99565d24c8
6 changed files with 24 additions and 1 deletions

View file

@ -43,7 +43,7 @@
# Timeouts
REFINERY_MODEL_GENERATION_TIMEOUT_SEC = "60";
REFINERY_MODEL_GENERATION_THREAD_COUNT = "10";
REFINERY_MODEL_GENERATION_THREAD_COUNT = "50";
};
};
};

BIN
deemz.org/GeoLite2-ASN.mmdb Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 MiB

Binary file not shown.

View file

@ -83,6 +83,25 @@ let secrets = import ../secrets.nix; in
};
users.groups.icomidal = {};
# Run goaccess script hourly
systemd.timers.goaccess = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "hourly";
Persistent = true;
Unit = "goaccess.service";
};
};
systemd.services.goaccess = {
script = "${pkgs.gzip}/bin/zcat /var/log/nginx/access.log.*.gz | ${pkgs.goaccess}/bin/goaccess -a -o /var/log/nginx/goaccess.html --log-format=COMBINED --geoip-database=${./GeoLite2-City.mmdb} --geoip-database=${./GeoLite2-Country.mmdb} --geoip-database=${./GeoLite2-ASN.mmdb} /var/log/nginx/access.log /var/log/nginx/access.log.1 -";
serviceConfig = {
Type = "oneshot";
User = "nginx";
Nice = 19; # low priority
IOSchedulingClass = "idle";
};
};
services.xserver.xkb.layout = "us";
services.xserver.xkb.options = "eurosign:e";

View file

@ -62,6 +62,7 @@
environment.systemPackages = with pkgs; [
vim
firefox
git
];
# Some programs need SUID wrappers, can be configured further or are
@ -88,6 +89,9 @@
forceSSL = true;
sslCertificate = "/var/ssl_keys/msdl-testing.pem";
sslCertificateKey = "/var/ssl_keys/msdl-testing.key";
extraConfig = ''
ssl_password_file "/var/ssl_keys/msdl-testing.passwd";
'';
};
};