chore: initial commit of Go API gateway
Baseline for the Kong replacement on api.riotpiao.com. Brings the working tree under version control for the first time: gateway source, the task board that drives the agent runs, test fixtures, and K8s manifests. Anchor the gateway ignore rule to the repo root. Unanchored, "gateway" also matched the cmd/gateway/ source directory, so the program entrypoint was excluded from every commit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: host1.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: host2.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 20971520
|
||||
authRequired: false
|
||||
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
# Local development harness config. Every upstream points at the single stub
|
||||
# server started by internal/testsupport, on loopback only — no cluster address,
|
||||
# no *.riotpiao.com, no credentials. Route names match testdata/config/valid.yaml
|
||||
# so the same assertions work against either fixture.
|
||||
routes:
|
||||
- name: reasoning-chat
|
||||
upstream:
|
||||
address: 127.0.0.1:9080
|
||||
connectTimeout: "10s"
|
||||
readTimeout: "1h"
|
||||
writeTimeout: "1h"
|
||||
maxBodySize: 10485760
|
||||
authRequired: false
|
||||
|
||||
- name: ornith-chat
|
||||
upstream:
|
||||
address: 127.0.0.1:9080
|
||||
connectTimeout: "5s"
|
||||
readTimeout: "10m"
|
||||
writeTimeout: "3m"
|
||||
maxBodySize: 5242880
|
||||
authRequired: false
|
||||
|
||||
- name: embeddings
|
||||
upstream:
|
||||
address: 127.0.0.1:9080
|
||||
connectTimeout: "5s"
|
||||
readTimeout: "30m"
|
||||
writeTimeout: "2m"
|
||||
maxBodySize: 5242880
|
||||
authRequired: false
|
||||
@@ -0,0 +1,9 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: localhost
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
@@ -0,0 +1,9 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "not-a-duration"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "invalid"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "bad"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
writeTimeout: "1m"
|
||||
authRequired: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
writeTimeout: "1m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
routes:
|
||||
- name: test-route
|
||||
upstream:
|
||||
address: test-host.llm-serving:80
|
||||
connectTimeout: "30s"
|
||||
readTimeout: "5m"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
routes:
|
||||
- name: reasoning-chat
|
||||
upstream:
|
||||
address: reasoning-predictor.llm-serving:80
|
||||
connectTimeout: "10s"
|
||||
readTimeout: "1h"
|
||||
writeTimeout: "1h"
|
||||
maxBodySize: 10485760
|
||||
authRequired: true
|
||||
|
||||
- name: ornith-chat
|
||||
upstream:
|
||||
address: ornith-frontend.llm-serving:80
|
||||
connectTimeout: "5s"
|
||||
readTimeout: "10m"
|
||||
writeTimeout: "3m"
|
||||
maxBodySize: 5242880
|
||||
authRequired: false
|
||||
|
||||
- name: embeddings
|
||||
upstream:
|
||||
address: embedding-worker.llm-serving:80
|
||||
connectTimeout: "5s"
|
||||
readTimeout: "30m"
|
||||
writeTimeout: "2m"
|
||||
maxBodySize: 5242880
|
||||
authRequired: true
|
||||
Reference in New Issue
Block a user