feat(infra): Nix build for scraper, GitHub Actions workflow

- Build scraper (Rust) with Nix — cargo build --release
- Create scraper systemd unit (port 4091), env from Docker config
- Fix HOME/CARGO_HOME for Rust/cargo in Nix sandbox
- Update Traefik apps.yaml: scraper -> host.docker.internal:4091
- Add iptables rules for port 4091 (Docker->host)
- Add GitHub Actions workflow: nix-build.yml (determinate-nix + deploy)
- Save iptables rules persistently
This commit is contained in:
Asep Haryana
2026-07-30 18:46:45 +07:00
parent 1ae8a53cd4
commit 46730ec07d
3 changed files with 75 additions and 1 deletions
+3
View File
@@ -31,6 +31,9 @@
NODE_EXTRA_CA_CERTS = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
NODE_ENV = "production";
HOME = "/tmp";
CARGO_HOME = "/tmp/.cargo";
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = buildScript;
installPhase = installScript;