feat: add mcp.domains config for multi-domain portal support
New 'domains' key accepts comma-separated MCP_DOMAINS env var, falling back to single MCP_DOMAIN value for backward compatibility. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
8efd939ce4
commit
b75fa0ba57
1 changed files with 10 additions and 4 deletions
14
config.php
14
config.php
|
|
@ -4,19 +4,25 @@ return [
|
|||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| MCP Portal Domain
|
||||
| MCP Portal Domain(s)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain where the MCP Portal is served. This hosts the server registry,
|
||||
| documentation, and discovery endpoints for AI agents.
|
||||
| The domain(s) where the MCP Portal is served. Routes are registered for
|
||||
| each domain in the 'domains' array.
|
||||
|
|
||||
| Production: mcp.host.uk.com
|
||||
| Local dev: mcp.host.test (Valet)
|
||||
| Local dev: mcp.host.test, mcp.lthn.test (Valet)
|
||||
|
|
||||
| Set MCP_DOMAINS as a comma-separated list for multiple domains.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => env('MCP_DOMAIN', 'mcp.'.env('APP_DOMAIN', 'host.uk.com')),
|
||||
|
||||
'domains' => array_filter(array_map('trim', explode(',',
|
||||
env('MCP_DOMAINS', env('MCP_DOMAIN', 'mcp.'.env('APP_DOMAIN', 'host.uk.com')))
|
||||
))),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Registry Path
|
||||
|
|
|
|||
Reference in a new issue