diff --git a/deploy/config.example.yaml b/deploy/config.example.yaml index 8e80801..5b7d67a 100644 --- a/deploy/config.example.yaml +++ b/deploy/config.example.yaml @@ -11,3 +11,6 @@ agent: listen: 127.0.0.1:43293 # reached from hetzner2's -fc-host-port via the tunnel (-R) guest_url: http://10.0.2.2:43293 upstream: http://127.0.0.1:43295 # stagehand gateway-proxy on this host +events: + secret_file: /etc/stagehand/trigger.key # shared HMAC key for `serve --trigger-addr`, 0600 + # max_payload_bytes: 67108864 # default 64 MiB diff --git a/deploy/stagehand.service b/deploy/stagehand.service index fb8438e..18121ee 100644 --- a/deploy/stagehand.service +++ b/deploy/stagehand.service @@ -9,7 +9,8 @@ Wants=network-online.target stagehand-hetzner2-tunnel.service stagehand-gateway- Type=simple Environment=STAGEHAND_HOME=/var/lib/stagehand Environment=STAGEHAND_CONFIG=/etc/stagehand/config.yaml -ExecStart=/usr/local/bin/stagehand serve --status-addr 127.0.0.1:8797 +# --trigger-addr: event intake (loopback only; needs events.secret_file in the config). +ExecStart=/usr/local/bin/stagehand serve --status-addr 127.0.0.1:8797 --trigger-addr 127.0.0.1:8798 Restart=on-failure RestartSec=10 # Stop sends SIGTERM: running stages are stopped and their runs parked as