syndicate-js/packages/create/template/syndicate-server.config.pr

19 lines
660 B
Plaintext

# Start the server with
#
# syndicate-server -c ./syndicate-server.config.pr
# ---------------------------------------------------------------------------
# Expose the gatekeeper and HTTP on port 8000:
<require-service <relay-listener <tcp "0.0.0.0" 8000> $gatekeeper $config>>
<require-service <http-router $config>>
<require-service <http-static-files "." 0>>
? <service-object <http-static-files "." 0> ?handler> [
$config += <http-bind #f 8000 get [...] $handler>
]
# Create a dataspace entity, and register it with the gatekeeper with name `"syndicate"` and an
# empty secret key:
let ?ds = dataspace
<bind <ref {oid: "syndicate" key: #x""}> $ds #f>