|
@@ -190,6 +190,7 @@ You can configure server settings for the `opencode serve` and `opencode web` co
|
|
|
"port": 4096,
|
|
"port": 4096,
|
|
|
"hostname": "0.0.0.0",
|
|
"hostname": "0.0.0.0",
|
|
|
"mdns": true,
|
|
"mdns": true,
|
|
|
|
|
+ "mdnsDomain": "myproject.local",
|
|
|
"cors": ["http://localhost:5173"]
|
|
"cors": ["http://localhost:5173"]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -200,6 +201,7 @@ Available options:
|
|
|
- `port` - Port to listen on.
|
|
- `port` - Port to listen on.
|
|
|
- `hostname` - Hostname to listen on. When `mdns` is enabled and no hostname is set, defaults to `0.0.0.0`.
|
|
- `hostname` - Hostname to listen on. When `mdns` is enabled and no hostname is set, defaults to `0.0.0.0`.
|
|
|
- `mdns` - Enable mDNS service discovery. This allows other devices on the network to discover your OpenCode server.
|
|
- `mdns` - Enable mDNS service discovery. This allows other devices on the network to discover your OpenCode server.
|
|
|
|
|
+- `mdnsDomain` - Custom domain name for mDNS service. Defaults to `opencode.local`. Useful for running multiple instances on the same network.
|
|
|
- `cors` - Additional origins to allow for CORS when using the HTTP server from a browser-based client. Values must be full origins (scheme + host + optional port), eg `https://app.example.com`.
|
|
- `cors` - Additional origins to allow for CORS when using the HTTP server from a browser-based client. Values must be full origins (scheme + host + optional port), eg `https://app.example.com`.
|
|
|
|
|
|
|
|
[Learn more about the server here](/docs/server).
|
|
[Learn more about the server here](/docs/server).
|