chore(server): change default HTTP port from 9000 to 8700
Avoid colliding with MinIO's default S3 API port. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -16,7 +16,7 @@ pnpm install
|
|||||||
pnpm dev
|
pnpm dev
|
||||||
```
|
```
|
||||||
|
|
||||||
- API: http://localhost:9000
|
- API: http://localhost:8700
|
||||||
- UI (dev): http://localhost:5173
|
- UI (dev): http://localhost:5173
|
||||||
|
|
||||||
The first account created becomes **admin**. Later accounts are created from Users.
|
The first account created becomes **admin**. Later accounts are created from Users.
|
||||||
@@ -52,9 +52,9 @@ Optional `script.meta.reads = "ctx"` documents expression hosts. `meta.input` /
|
|||||||
|---|---|
|
|---|---|
|
||||||
| `pnpm dev` | Server + Vite together |
|
| `pnpm dev` | Server + Vite together |
|
||||||
| `pnpm dev:server` | API/runner only |
|
| `pnpm dev:server` | API/runner only |
|
||||||
| `pnpm dev:web` | UI only (proxies `/api` to :9000) |
|
| `pnpm dev:web` | UI only (proxies `/api` to :8700) |
|
||||||
| `pnpm build` | Production UI build |
|
| `pnpm build` | Production UI build |
|
||||||
| `pnpm start` | Serve API and built UI from :9000 |
|
| `pnpm start` | Serve API and built UI from :8700 |
|
||||||
| `pnpm migrate` | Apply SQLite migrations |
|
| `pnpm migrate` | Apply SQLite migrations |
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
@@ -67,7 +67,7 @@ Optional `script.meta.reads = "ctx"` documents expression hosts. `meta.input` /
|
|||||||
| `JFLOW_LOG_LEVEL` | `debug` | Pino level |
|
| `JFLOW_LOG_LEVEL` | `debug` | Pino level |
|
||||||
| `JFLOW_RETENTION_DAYS` | `30` | Run history prune |
|
| `JFLOW_RETENTION_DAYS` | `30` | Run history prune |
|
||||||
| `JFLOW_CORS_ORIGIN` | `http://localhost:5173` | Vite origin in dev |
|
| `JFLOW_CORS_ORIGIN` | `http://localhost:5173` | Vite origin in dev |
|
||||||
| `PORT` | `9000` | HTTP port |
|
| `PORT` | `8700` | HTTP port |
|
||||||
| `NODE_ENV` | — | Set `production` for secure cookies |
|
| `NODE_ENV` | — | Set `production` for secure cookies |
|
||||||
|
|
||||||
## Production
|
## Production
|
||||||
|
|||||||
@@ -1,41 +1,34 @@
|
|||||||
### Manual trigger (default owner)
|
### Manual trigger (default owner)
|
||||||
POST http://localhost:9000/u/default/mt
|
POST http://localhost:8700/u/default/mt
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
0
|
0
|
||||||
|
|
||||||
###
|
###
|
||||||
POST http://localhost:9000/u/default/time-to-ntfy
|
POST http://localhost:8700/u/default/time-to-ntfy
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{}
|
{}
|
||||||
|
###
|
||||||
### Auth bootstrap
|
GET http://localhost:8700/api/auth/bootstrap
|
||||||
GET http://localhost:9000/api/auth/bootstrap
|
###
|
||||||
|
POST http://localhost:8700/api/auth/login
|
||||||
### Login
|
|
||||||
POST http://localhost:9000/api/auth/login
|
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"username": "admin",
|
"username": "admin",
|
||||||
"password": "changeme1"
|
"password": "changeme1"
|
||||||
}
|
}
|
||||||
|
###
|
||||||
### Dashboard
|
GET http://localhost:8700/api/dashboard
|
||||||
GET http://localhost:9000/api/dashboard
|
###
|
||||||
|
GET http://localhost:8700/api/runs?owner=default&limit=20
|
||||||
### Runs
|
###
|
||||||
GET http://localhost:9000/api/runs?owner=default&limit=20
|
POST http://localhost:8700/api/workflows/reregister
|
||||||
|
|
||||||
### Reregister
|
|
||||||
POST http://localhost:9000/api/workflows/reregister
|
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{}
|
{}
|
||||||
|
###
|
||||||
### Run workflow manually
|
POST http://localhost:8700/api/workflows/default/manual-trigger.yaml/run
|
||||||
POST http://localhost:9000/api/workflows/default/manual-trigger.yaml/run
|
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{}
|
{}
|
||||||
@@ -174,7 +174,7 @@ async function shutdown() {
|
|||||||
process.on("SIGINT", shutdown);
|
process.on("SIGINT", shutdown);
|
||||||
process.on("SIGTERM", shutdown);
|
process.on("SIGTERM", shutdown);
|
||||||
|
|
||||||
const port = Number(process.env.PORT ?? 9000);
|
const port = Number(process.env.PORT ?? 8700);
|
||||||
|
|
||||||
server
|
server
|
||||||
.listen({
|
.listen({
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": { target: "http://127.0.0.1:9000", changeOrigin: true },
|
"/api": { target: "http://127.0.0.1:8700", changeOrigin: true },
|
||||||
"/admin": { target: "http://127.0.0.1:9000", changeOrigin: true },
|
"/admin": { target: "http://127.0.0.1:8700", changeOrigin: true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user