Files
api7-demo/adc.yaml
d.viti d17e356fcd
Some checks failed
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-web (push) Failing after 45s
Build and Deploy / build-api (push) Successful in 53s
Simplify Docker build workflow and update routing rules
2025-10-07 18:31:56 +02:00

66 lines
1.4 KiB
YAML

services:
- name: apache-service
hosts:
- commandware.it
upstream:
name: apache-upstream
scheme: http
type: roundrobin
nodes:
- host: apache-service.api7ee.svc.cluster.local
port: 80
weight: 100
routes:
- name: apache-route
uris:
- /*
vars:
- - uri
- "~~"
- "^(?!/api)"
priority: 1
plugins:
redirect:
http_to_https: true
- name: nginx-api-service
hosts:
- commandware.it
upstream:
name: nginx-upstream
scheme: http
type: roundrobin
nodes:
- host: nginx-service.api7ee.svc.cluster.local
port: 80
weight: 100
routes:
- name: nginx-api-llm-route
uris:
- /api/llm
- /api/llm/*
priority: 20
plugins:
redirect:
http_to_https: true
ai-rate-limiting:
limit: 100
time_window: 60
rejected_code: 429
limit_strategy: "total_tokens"
- name: nginx-api-route
uris:
- /api
- /api/*
priority: 10
plugins:
redirect:
http_to_https: true
limit-count:
count: 100
time_window: 60
rejected_code: 429
key_type: "var"
key: "remote_addr"