{ pkgs, ... }:
let
  geoserver-war = pkgs.fetchzip {
    url = "https://downloads.sourceforge.net/sourceforge/geoserver/GeoServer/2.25.1/geoserver-2.25.1-war.zip";
    hash = "sha256-O9XDjx3csW9HZzSYROPUCyl3sYlrKLMpHztUKYIEabs=";
    stripRoot = false;
  };
in
{
  services.tomcat = {
    enable = true;
    virtualHosts = [
      {
        name = "meili.datarift.nl";
        webapps = [ "${geoserver-war}/geoserver.war" ];
      }
    ];
    purifyOnStart = true;
  };
}