Spaces:
Running
Running
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 2)
Browse files- space/entrypoint.sh +6 -1
- space/supervisord.conf +17 -0
space/entrypoint.sh
CHANGED
|
@@ -15,12 +15,17 @@ export PYTHONDONTWRITEBYTECODE=1
|
|
| 15 |
export PYTHONUNBUFFERED=1
|
| 16 |
export HOME=/home/aureon
|
| 17 |
|
| 18 |
-
# ---- authority
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
export AUREON_LIVE_TRADING=0
|
| 20 |
export AUREON_FUSION_ARM_LIVE=""
|
| 21 |
export AUREON_DISABLE_REAL_ORDERS=1
|
| 22 |
export AUREON_DISABLE_EXCHANGE_MUTATIONS=1
|
| 23 |
export AUREON_ORDER_INTENT_PUBLISH=0
|
|
|
|
| 24 |
|
| 25 |
# ---- operator gateway (the full console brain, loopback behind nginx) ----
|
| 26 |
export AUREON_OPERATOR_HOST="${AUREON_OPERATOR_HOST:-127.0.0.1}"
|
|
|
|
| 15 |
export PYTHONUNBUFFERED=1
|
| 16 |
export HOME=/home/aureon
|
| 17 |
|
| 18 |
+
# ---- authority: owner's signed release governs (docs/LIVE_TRADING_RUNBOOK.md,
|
| 19 |
+
# RELEASE 2026-11-01). When the operator arms the surface via the Space secret
|
| 20 |
+
# AUREON_LIVE_TRADING=1 + AUREON_FUSION_ARM_LIVE, paper defaults are NOT applied
|
| 21 |
+
# and the owner's .env flags (LIVE=1, caps, rates) govern. Otherwise paper:
|
| 22 |
+
if [ "${AUREON_LIVE_TRADING:-}" != "1" ]; then
|
| 23 |
export AUREON_LIVE_TRADING=0
|
| 24 |
export AUREON_FUSION_ARM_LIVE=""
|
| 25 |
export AUREON_DISABLE_REAL_ORDERS=1
|
| 26 |
export AUREON_DISABLE_EXCHANGE_MUTATIONS=1
|
| 27 |
export AUREON_ORDER_INTENT_PUBLISH=0
|
| 28 |
+
fi
|
| 29 |
|
| 30 |
# ---- operator gateway (the full console brain, loopback behind nginx) ----
|
| 31 |
export AUREON_OPERATOR_HOST="${AUREON_OPERATOR_HOST:-127.0.0.1}"
|
space/supervisord.conf
CHANGED
|
@@ -88,6 +88,23 @@ stdout_logfile_maxbytes=0
|
|
| 88 |
stderr_logfile=/dev/stderr
|
| 89 |
stderr_logfile_maxbytes=0
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
[program:hnc_core]
|
| 92 |
command=/usr/local/bin/python -u -m aureon_fusion.hnc_core --supervise
|
| 93 |
environment=SERO_RUNTIME_HOME="/app/aureon-os/aureon_fusion/state"
|
|
|
|
| 88 |
stderr_logfile=/dev/stderr
|
| 89 |
stderr_logfile_maxbytes=0
|
| 90 |
|
| 91 |
+
[program:trader]
|
| 92 |
+
; The owner-signed live-release seat (RELEASE 2026-11-01 in
|
| 93 |
+
; docs/LIVE_TRADING_RUNBOOK.md). Arms from exchange-key secrets + AUREON_LIVE_TRADING=1
|
| 94 |
+
; + AUREON_FUSION_ARM_LIVE; the seat/trading_world_v5b runs the trading organism
|
| 95 |
+
; on 127.0.0.1:8765 (internal; never publicly routed).
|
| 96 |
+
command=/usr/local/bin/python -u -m aureon.launch.master --only seat/trading_world_v5b,deps/python
|
| 97 |
+
directory=/app/aureon-os
|
| 98 |
+
environment=SERO_WORKSPACE="/app/aureon-os",PYTHONPATH="/app/aureon-os"
|
| 99 |
+
priority=45
|
| 100 |
+
autorestart=true
|
| 101 |
+
startsecs=15
|
| 102 |
+
startretries=2
|
| 103 |
+
stdout_logfile=/dev/stdout
|
| 104 |
+
stdout_logfile_maxbytes=0
|
| 105 |
+
stderr_logfile=/dev/stderr
|
| 106 |
+
stderr_logfile_maxbytes=0
|
| 107 |
+
|
| 108 |
[program:hnc_core]
|
| 109 |
command=/usr/local/bin/python -u -m aureon_fusion.hnc_core --supervise
|
| 110 |
environment=SERO_RUNTIME_HOME="/app/aureon-os/aureon_fusion/state"
|