graylog: use upstream geoip database
This commit is contained in:
parent
1fae5c5366
commit
b0eb5e5fcd
3 changed files with 1 additions and 33 deletions
|
@ -47,10 +47,7 @@ in {
|
||||||
services.graylog.rootPasswordSha2 =
|
services.graylog.rootPasswordSha2 =
|
||||||
lib.fileContents <secrets/graylog/root-password-hash>;
|
lib.fileContents <secrets/graylog/root-password-hash>;
|
||||||
|
|
||||||
environment.etc."graylog/server/GeoLite2-City.mmdb" = {
|
services.geoip-updater.enable = true;
|
||||||
enable = true;
|
|
||||||
source = "${pkgs.geodatabase}/GeoLite2-City.mmdb";
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://wiki.splunk.com/Http_status.csv
|
# https://wiki.splunk.com/Http_status.csv
|
||||||
environment.etc."graylog/server/httpCodes.csv" = {
|
environment.etc."graylog/server/httpCodes.csv" = {
|
||||||
|
|
|
@ -29,8 +29,6 @@ in {
|
||||||
|
|
||||||
bitwig-studio = callPackage ./bitwig-studio/bitwig-studio-environment.nix { };
|
bitwig-studio = callPackage ./bitwig-studio/bitwig-studio-environment.nix { };
|
||||||
|
|
||||||
geodatabase = callPackage ./geodatabase { };
|
|
||||||
|
|
||||||
landingpage = callPackage ./landingpage { };
|
landingpage = callPackage ./landingpage { };
|
||||||
|
|
||||||
bepasty-client-cli = callPackage ./bepasty-client-cli { };
|
bepasty-client-cli = callPackage ./bepasty-client-cli { };
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
{ stdenv, fetchurl, ... }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "20190702";
|
|
||||||
name = "geocities-${version}";
|
|
||||||
src = fetchurl {
|
|
||||||
url =
|
|
||||||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz";
|
|
||||||
# sha256 = "10jc4sff6p0gx5lirpy1m683l42al4sdh44hqmvnznxdgpgfcy3r";
|
|
||||||
sha256 = "1r2v3np74hzkzzndi15kwhl65wfy6aflfnj85ars0236bh2d786c";
|
|
||||||
};
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/
|
|
||||||
cp GeoLite2-City.mmdb $out/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "geo database";
|
|
||||||
homepage = "https://dev.maxmind.com/geoip/geoip2/geolite2/";
|
|
||||||
license = licenses.MIT;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ mrVanDalo ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue