From 878cd1eb3c0c638482cb55816e78354d74bae055 Mon Sep 17 00:00:00 2001 From: hwhung Date: Mon, 27 Apr 2026 12:24:47 +0800 Subject: [PATCH] Use randomized default port --- config.example.json | 2 +- readme.md | 10 +++++----- src/lib/config.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.example.json b/config.example.json index 08ef5d3..e9f97cd 100644 --- a/config.example.json +++ b/config.example.json @@ -1,7 +1,7 @@ { "server": { "host": "0.0.0.0", - "port": 18080 + "port": 24731 }, "proxy": { "apiKey": "replace-this-token" diff --git a/readme.md b/readme.md index 209f2e8..9978a33 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,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: `18080` +- port: `24731` - bearer token: `dev-proxy-key` ## Optional Provider Config @@ -29,7 +29,7 @@ If they are available, create `config.json` in one write with this shape: { "server": { "host": "0.0.0.0", - "port": 18080 + "port": 24731 }, "proxy": { "apiKey": "dev-proxy-key" @@ -56,9 +56,9 @@ Fill only `providers.openai.apiKey`, `providers.openai.baseURL`, `providers.anth ## Verify ```bash -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 +curl -s http://localhost:24731/api/healthz +curl -s http://localhost:24731/dashboard | head +curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:24731/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 ce40373..ae2a909 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: 18080, + port: 24731, }, proxy: { apiKey: "dev-proxy-key",