infrastructure

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c96c0c91ff8f28a69ce7f1369f323a1c23436595
parent 8a7e45babf89a551c6dd7feaadfbaeda8d634d5e
Author: Silas Brack <silasbrack@gmail.com>
Date:   Sat, 13 Jun 2026 14:09:27 +0200

feat: serve logs on localhost:9090

Access via SSH port forward:
  ssh -L 9090:localhost:9090 helios
  duckdb -c "SELECT * FROM read_json('http://localhost:9090/2026/06/13/14.json.gz')"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Mmodules/simple-web-app.nix | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/simple-web-app.nix b/modules/simple-web-app.nix @@ -66,6 +66,15 @@ in }; + # Serve logs on localhost — access via SSH port forward or VPN + services.nginx.virtualHosts."simple-web-app-logs" = { + listen = [{ addr = "127.0.0.1"; port = 9090; }]; + locations."/" = { + root = "/mnt/volume-hel1-1/simple-web-app/logs"; + extraConfig = "autoindex on;"; + }; + }; + # Archive logs to volume systemd.services.simple-web-app-log-collection = { script = ''