otel: wire into live boot — load otel.sx + mount otel/routes in serve.sh
Adds lib/host/otel.sx to serve.sh MODULES and otel/routes to the host/serve group list so GET /otel (+ /otel/stream) serve on the live host once merged. Build-time wiring only; no container touched.
This commit is contained in:
@@ -91,6 +91,7 @@ MODULES=(
|
||||
"lib/host/htmlsx.sx"
|
||||
"lib/host/blog.sx"
|
||||
"lib/host/server.sx"
|
||||
"lib/host/otel.sx"
|
||||
)
|
||||
|
||||
# Admin login credentials + session signing secret. Override via the container
|
||||
@@ -194,5 +195,5 @@ EPOCH=1
|
||||
# middleware, so a browser logs in then publishes. The bearer resolver is a stub
|
||||
# (no API tokens configured) — browser session is the live auth path for now.
|
||||
# blog-routes LAST — its GET /:slug catch-all must not shadow the rest.
|
||||
echo "(eval \"(host/serve $PORT (list host/static-routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes))\")"
|
||||
echo "(eval \"(host/serve $PORT (list host/static-routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes otel/routes))\")"
|
||||
} | exec "$SX_SERVER"
|
||||
|
||||
Reference in New Issue
Block a user