Use randomized default port
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"server": {
|
"server": {
|
||||||
"host": "0.0.0.0",
|
"host": "0.0.0.0",
|
||||||
"port": 18080
|
"port": 24731
|
||||||
},
|
},
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"apiKey": "replace-this-token"
|
"apiKey": "replace-this-token"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ If plain `pnpm` is unavailable, use `corepack pnpm` for the same commands. Do no
|
|||||||
The app runs without `config.json`:
|
The app runs without `config.json`:
|
||||||
|
|
||||||
- host: `0.0.0.0`
|
- host: `0.0.0.0`
|
||||||
- port: `18080`
|
- port: `24731`
|
||||||
- bearer token: `dev-proxy-key`
|
- bearer token: `dev-proxy-key`
|
||||||
|
|
||||||
## Optional Provider Config
|
## Optional Provider Config
|
||||||
@@ -29,7 +29,7 @@ If they are available, create `config.json` in one write with this shape:
|
|||||||
{
|
{
|
||||||
"server": {
|
"server": {
|
||||||
"host": "0.0.0.0",
|
"host": "0.0.0.0",
|
||||||
"port": 18080
|
"port": 24731
|
||||||
},
|
},
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"apiKey": "dev-proxy-key"
|
"apiKey": "dev-proxy-key"
|
||||||
@@ -56,9 +56,9 @@ Fill only `providers.openai.apiKey`, `providers.openai.baseURL`, `providers.anth
|
|||||||
## Verify
|
## Verify
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -s http://localhost:18080/api/healthz
|
curl -s http://localhost:24731/api/healthz
|
||||||
curl -s http://localhost:18080/dashboard | head
|
curl -s http://localhost:24731/dashboard | head
|
||||||
curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:18080/v1/models
|
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`.
|
Expected without provider config: dashboard, health, and model list work; chat completions return `503`.
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ export interface AppConfig {
|
|||||||
const DEFAULT_CONFIG: AppConfig = {
|
const DEFAULT_CONFIG: AppConfig = {
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 18080,
|
port: 24731,
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
apiKey: "dev-proxy-key",
|
apiKey: "dev-proxy-key",
|
||||||
|
|||||||
Reference in New Issue
Block a user