Server configuration
Host lifecycle, config migration and required foreign plugin policy.
On this page
Files and migration
host.Open searches server.yml → server.yaml → server.json and creates YAML defaults if none exists. Legacy JSON/worldgen migration creates a backup without overwriting an existing server.yml. Relative paths resolve from baseDir.
server.lock is acquired before opening providers and released during Close. Do not remove the lock of a running server.
Configuration sections
host: {}
server: {}
bedrock: {}
bootstrap: {}
runtime: {}
debug: {}
worlds: []This illustrates sections, not a production-ready config. host controls logging/console/pprof; server controls address, identity, autosave and paths; bedrock controls chunk budgets; worlds defines storage/generation.
Logging
host:
logging:
level: info
components:
network: warn
file_enabled: true
file: logs/server.jsonl
file_queue: 4096
console:
enabled: true
pprof:
address: ""trace / debug / info / warn / error. Pprof is disabled when address is empty unless an environment fallback is set. Avoid global trace in production.
Foreign plugins
- plugins/<plugin-id>/plugin.json; deterministic direct-child scan, not recursive.
foreign.allowed: host-owned policy; the manifest cannot grant capabilities.foreign.worker_path: trusted worker, default pulce-wasm-worker beside the executable.- Required positive limits: max_component_bytes, init_fuel, callback_fuel. Component limit cannot exceed process_memory_bytes.
- Production required_features: component-world-v2; plugin data uses bootstrap.module_storage.path.
Inspect the schema
.\bin\pulsed.exe config schema
.\bin\pulsed.exe config schema --yaml server-config.schema.yamlUse generated schema and host.Config for full fields/defaults rather than stale copied configs. Memory/leveldb/mcdb providers and flat/vanilla/vanilla_native/terrain/df2 generators have different requirements.