Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(infra): stop API/agents machines auto-stopping so the web 6PN proxy stays reachable (#234)

Beenu Aroraeb4ed1eeea95
diff --git a/infra/fly/agents/fly.toml b/infra/fly/agents/fly.toml
index 996ddc445..e030b09fb 100644
--- a/infra/fly/agents/fly.toml
+++ b/infra/fly/agents/fly.toml
@@ -35,7 +35,10 @@ kill_timeout = "10s" # agent runs may need to flush ledger writes
[http_service]
internal_port = 8084
force_https = true
- auto_stop_machines = "stop"
+ # Never auto-stop: the web app proxies AI Copilot / agent calls over 6PN
+ # (aisoc-demo-agents.internal:8084), and 6PN connections do NOT trigger Fly's
+ # auto-start, so a stopped machine 500s the Copilot. Keep it warm 24/7.
+ auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
diff --git a/infra/fly/api/fly.toml b/infra/fly/api/fly.toml
index d32fc8542..5b5b90def 100644
--- a/infra/fly/api/fly.toml
+++ b/infra/fly/api/fly.toml
@@ -80,7 +80,12 @@ kill_timeout = "5s"
[http_service]
internal_port = 8000
force_https = true
- auto_stop_machines = "stop"
+ # Never auto-stop: the web app proxies /api/v1/* over 6PN
+ # (aisoc-demo-api.internal:8000), and 6PN connections do NOT trigger Fly's
+ # auto-start. A stopped machine therefore 500s the dashboard's metrics calls
+ # even though the public api.tryaisoc.com edge would auto-start it. Keeping
+ # the single demo machine warm 24/7 makes the internal proxy reliable.
+ auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1 # keep one warm for sub-60s TTFI
processes = ["app"]