You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `extproc/` directory contains the external processor service that implements the EPP (Endpoint Picker Processor) functionality via gRPC.
62
+
The `mock-extproc/` directory contains the mock external processor service that implements both EPP (Endpoint Picker Processor) and BBR (Body Buffer & Rewrite) functionality via gRPC. It uses the `extproc_mock` binary from this repository.
50
63
51
64
### Usage
52
65
53
66
```bash
54
-
docker run -p 9001:9001 extproc-service:latest
67
+
# Run as EPP (Endpoint Picker Processor) on port 9001
68
+
docker run -p 9001:9001 \
69
+
-e EPP_UPSTREAM=echo-server:80 \
70
+
extproc-mock:latest
71
+
72
+
# Run as BBR on port 9000
73
+
docker run -p 9000:9000 \
74
+
-e BBR_MODEL=bbr-chosen-model \
75
+
extproc-mock:latest \
76
+
extproc_mock 0.0.0.0:9000
55
77
```
56
78
57
-
## Examples
79
+
## Echo Server
58
80
59
-
The `examples/` directory contains sample services for testing:
60
-
-`custom-echo-server.js` - Simple Node.js echo server for testing
61
-
-`custom-echo.Dockerfile` - Dockerfile for the echo server
81
+
The `echo-server/` directory contains a simple Node.js echo server for testing with a 50MB payload limit:
82
+
-`custom-echo-server.js` - Simple Node.js echo server implementation
83
+
-`Dockerfile` - Dockerfile for the echo server
84
+
-`package.json` - Node.js dependencies
62
85
63
86
## Environment Variables
64
87
65
88
### NGINX Container
66
89
67
-
-`NGINX_WORKER_PROCESSES` - Number of worker processes (default: auto)
The NGINX container uses an official NGINX image with the ngx-inference module dynamically loaded. Configuration is provided via volume-mounted nginx.conf files.
91
+
92
+
### Mock External Processor
93
+
94
+
-`EPP_UPSTREAM` - Upstream endpoint for EPP routing (default: echo-server:80)
95
+
-`BBR_MODEL` - Model identifier for BBR responses (default: bbr-chosen-model)
96
+
-`MOCK_ROLE` - Role identifier (e.g., EPP, BBR)
69
97
70
-
### External Processor
98
+
### Echo Server
71
99
72
-
-`GRPC_PORT` - gRPC server port (default: 9001)
73
-
-`LOG_LEVEL` - Logging level (default: info)
100
+
-`PORT` - Server listening port (default: 80)
74
101
75
102
## Development
76
103
77
-
For development and testing, you can use the provided docker-compose configuration:
0 commit comments