Files
dotfiles/rust/haproxy_ingest_server/package.nix
T
Richie 438b4e09e6 feat: add HAProxy log ingestion server
- Introduced a new Rust-based service for ingesting HAProxy logs, including the necessary database schema and API endpoints.
- Implemented database interactions for managing source status, inserting events, and handling ingestion batches.
- Added validation for incoming log batches to ensure data integrity.
- Configured systemd service for the HAProxy ingestion server with appropriate security settings.
- Updated firewall rules to allow traffic on the ingestion server's port (8444).
- Created necessary PostgreSQL database and user configurations for the ingestion service.
2026-10-16 21:12:37 -04:00

20 lines
448 B
Nix

{
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "haproxy-ingest-server";
version = "0.1.0";
src = import ../rust-source.nix { inherit lib; };
cargoLock.lockFile = ../../Cargo.lock;
cargoBuildFlags = [ "-p haproxy-ingest-server" ];
cargoTestFlags = [ "-p haproxy-ingest-server" ];
meta = {
description = "HAProxy log ingestion API";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}