diff --git a/config.example.json b/config.example.json index 4a26359..08ef5d3 100644 --- a/config.example.json +++ b/config.example.json @@ -1,7 +1,7 @@ { "server": { "host": "0.0.0.0", - "port": 8080 + "port": 18080 }, "proxy": { "apiKey": "replace-this-token" diff --git a/readme.md b/readme.md index a3e7680..8823859 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,7 @@ # Agent Runbook Run this repository as a standalone app. Do not add it to a parent workspace. Do not move it into `artifacts/`. Do not edit source files for setup. +Use port `18080`; do not use or free port `8080`. ## Setup @@ -16,7 +17,7 @@ If plain `pnpm` is unavailable, use `corepack pnpm` for the same commands. Do no The app runs without `config.json`: - host: `0.0.0.0` -- port: `8080` +- port: `18080` - bearer token: `dev-proxy-key` ## Optional Provider Config @@ -29,7 +30,7 @@ If they are available, create `config.json` in one write with this shape: { "server": { "host": "0.0.0.0", - "port": 8080 + "port": 18080 }, "proxy": { "apiKey": "dev-proxy-key" @@ -56,9 +57,9 @@ Fill only `providers.openai.apiKey`, `providers.openai.baseURL`, `providers.anth ## Verify ```bash -curl -s http://localhost:8080/api/healthz -curl -s http://localhost:8080/dashboard | head -curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:8080/v1/models +curl -s http://localhost:18080/api/healthz +curl -s http://localhost:18080/dashboard | head +curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:18080/v1/models ``` Expected without provider config: dashboard, health, and model list work; chat completions return `503`. diff --git a/src/lib/config.ts b/src/lib/config.ts index 6b86ac4..ce40373 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -27,7 +27,7 @@ export interface AppConfig { const DEFAULT_CONFIG: AppConfig = { server: { host: "0.0.0.0", - port: 8080, + port: 18080, }, proxy: { apiKey: "dev-proxy-key",