Skip to content

Commit 18441ce

Browse files
SchenLongclaude
andcommitted
chore: change default UI port from 3000 to 42001
Update the default web UI port across all config, source, tests, and documentation to use port 42001 instead of the Next.js default 3000. Includes: .env.example, .env.local, Dockerfile, package.json scripts, playwright config, protocol-fuzzer defaults, ~70 test mock URLs, and all user-facing documentation references. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4475b90 commit 18441ce

File tree

133 files changed

+676
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+676
-340
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cd DojoLM && npm install
3838
npm start --workspace=packages/bu-tpi # API on :8089
3939

4040
# Run the web UI
41-
npm run dev:web # UI on :3000
41+
npm run dev:web # UI on :42001
4242

4343
# Run tests
4444
npm test # 5,771 tests, 100% pass rate

docs/user/API_REFERENCE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NODA provides RESTful APIs for scanner operations, LLM testing, and platform man
66

77
**Base URLs:**
88
- Scanner API: `http://localhost:8089`
9-
- Web API: `http://localhost:3000/api`
9+
- Web API: `http://localhost:42001/api`
1010

1111
**Authentication:**
1212
- API Key via `X-API-Key` header (for programmatic access)
@@ -138,7 +138,7 @@ Execute a single LLM test.
138138

139139
**Request:**
140140
```bash
141-
curl -X POST http://localhost:3000/api/llm/execute \
141+
curl -X POST http://localhost:42001/api/llm/execute \
142142
-H "Content-Type: application/json" \
143143
-H "X-API-Key: your-key" \
144144
-d '{
@@ -174,7 +174,7 @@ Execute batch LLM tests with SSE streaming.
174174

175175
**Request:**
176176
```bash
177-
curl -X POST http://localhost:3000/api/llm/batch \
177+
curl -X POST http://localhost:42001/api/llm/batch \
178178
-H "Content-Type: application/json" \
179179
-H "X-API-Key: your-key" \
180180
-d '{
@@ -199,7 +199,7 @@ curl -X POST http://localhost:3000/api/llm/batch \
199199
Stream batch progress via SSE.
200200

201201
```bash
202-
curl http://localhost:3000/api/llm/batch/uuid/stream
202+
curl http://localhost:42001/api/llm/batch/uuid/stream
203203
```
204204

205205
**Events:**
@@ -483,7 +483,7 @@ X-RateLimit-Reset: 1646745600
483483
import requests
484484

485485
API_KEY = "your-api-key"
486-
BASE_URL = "http://localhost:3000/api"
486+
BASE_URL = "http://localhost:42001/api"
487487

488488
def scan_text(text):
489489
response = requests.post(
@@ -501,7 +501,7 @@ print(result["verdict"])
501501

502502
```javascript
503503
const API_KEY = 'your-api-key';
504-
const BASE_URL = 'http://localhost:3000/api';
504+
const BASE_URL = 'http://localhost:42001/api';
505505

506506
async function scanText(text) {
507507
const response = await fetch(`${BASE_URL}/scan`, {

docs/user/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Yes, Docker support is available:
2929

3030
```bash
3131
docker build -t dojolm:latest .
32-
docker run -p 3000:3000 -p 8089:8089 dojolm:latest
32+
docker run -p 42001:42001 -p 8089:8089 dojolm:latest
3333
```
3434

3535
### How do I update NODA?

docs/user/GETTING_STARTED.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ npm run dev:web
3434

3535
### 4. Access NODA
3636

37-
Open your browser to: `http://localhost:3000`
37+
Open your browser to: `http://localhost:42001`
3838

3939
## Your First Scan
4040

@@ -120,16 +120,16 @@ Open your browser to: `http://localhost:3000`
120120

121121
```bash
122122
# Export all findings
123-
curl http://localhost:3000/api/ecosystem/findings/export
123+
curl http://localhost:42001/api/ecosystem/findings/export
124124

125125
# Export high severity only
126-
curl "http://localhost:3000/api/ecosystem/findings/export?severity=8"
126+
curl "http://localhost:42001/api/ecosystem/findings/export?severity=8"
127127
```
128128

129129
### Check System Health
130130

131131
```bash
132-
curl http://localhost:3000/api/admin/health
132+
curl http://localhost:42001/api/admin/health
133133
```
134134

135135
### Scan via API

docs/user/PLATFORM_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ curl http://localhost:8089/api/stats
286286

287287
```bash
288288
# Export all findings
289-
curl http://localhost:3000/api/ecosystem/findings/export
289+
curl http://localhost:42001/api/ecosystem/findings/export
290290

291291
# Filtered export
292-
curl "http://localhost:3000/api/ecosystem/findings/export?severity=high&format=json"
292+
curl "http://localhost:42001/api/ecosystem/findings/export?severity=high&format=json"
293293
```
294294

295295
### Reports

github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dojolm/
2828
│ │ ├── fixtures/ # 2,375 attack/clean fixture files across 30 categories
2929
│ │ └── tools/ # Test suites
3030
│ ├── dojolm-scanner/ # Enhanced scanner package (web integration)
31-
│ ├── dojolm-web/ # Next.js web app (port 3000)
31+
│ ├── dojolm-web/ # Next.js web app (port 42001)
3232
│ └── bmad-cybersec/ # Multi-agent cybersecurity operations framework
3333
├── docs/
3434
│ └── user/ # All public-facing documentation (this is where user docs live)

package-lock.json

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bu-tpi/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
"./shingan": {
9090
"import": "./dist/shingan/index.js",
9191
"types": "./dist/shingan/index.d.ts"
92+
},
93+
"./validation": {
94+
"import": "./dist/validation/index.js",
95+
"types": "./dist/validation/index.d.ts"
9296
}
9397
},
9498
"bin": {
@@ -135,7 +139,8 @@
135139
},
136140
"dependencies": {
137141
"exifr": "7.1.3",
138-
"music-metadata": "11.12.1"
142+
"music-metadata": "11.12.1",
143+
"zod": "3.24.4"
139144
},
140145
"devDependencies": {
141146
"@types/node": "^20.0.0",

packages/bu-tpi/src/compliance/__tests__/llm-test-capabilities-h104.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,23 @@ describe('createSelfPenTestConfig', () => {
160160
});
161161

162162
it('creates valid config for localhost', () => {
163-
const config = createSelfPenTestConfig('http://localhost:3000/api');
164-
expect(config.targetUrl).toBe('http://localhost:3000/api');
163+
const config = createSelfPenTestConfig('http://localhost:42001/api');
164+
expect(config.targetUrl).toBe('http://localhost:42001/api');
165165
expect(config.testMode).toBe(true);
166166
expect(config.bypassGuard).toBe(true);
167167
expect(config.logResults).toBe(true);
168168
expect(config.maxTestDuration).toBe(300_000);
169169
});
170170

171171
it('accepts 127.0.0.1', () => {
172-
const config = createSelfPenTestConfig('http://127.0.0.1:3000');
173-
expect(config.targetUrl).toBe('http://127.0.0.1:3000');
172+
const config = createSelfPenTestConfig('http://127.0.0.1:42001');
173+
expect(config.targetUrl).toBe('http://127.0.0.1:42001');
174174
expect(config.testMode).toBe(true);
175175
});
176176

177177
it('accepts IPv6 loopback ::1', () => {
178-
const config = createSelfPenTestConfig('http://[::1]:3000');
179-
expect(config.targetUrl).toBe('http://[::1]:3000');
178+
const config = createSelfPenTestConfig('http://[::1]:42001');
179+
expect(config.targetUrl).toBe('http://[::1]:42001');
180180
expect(config.testMode).toBe(true);
181181
});
182182

@@ -286,7 +286,7 @@ describe('evidence record production', () => {
286286
});
287287

288288
it('self-pen config produces structured evidence', () => {
289-
const evidence = createSelfPenTestConfig('http://localhost:3000');
289+
const evidence = createSelfPenTestConfig('http://localhost:42001');
290290
expect(evidence).toHaveProperty('targetUrl');
291291
expect(evidence).toHaveProperty('testMode');
292292
expect(evidence).toHaveProperty('bypassGuard');

packages/bu-tpi/src/fuzzing/protocol-fuzzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ProtocolFuzzConfig {
3636

3737
export const DEFAULT_PROTOCOL_FUZZ_CONFIG: ProtocolFuzzConfig = {
3838
protocol: 'mcp',
39-
targetUrl: 'http://localhost:3000',
39+
targetUrl: 'http://localhost:42001',
4040
maxIterations: 1000,
4141
timeoutMs: 5000,
4242
mutationRate: 0.1,

0 commit comments

Comments
 (0)