cmmc-platform/kong/kong.yml

41 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

_format_version: "3.0"
_transform: true
#########################################################
# Upstream — FastAPI service running in podman-compose
#########################################################
services:
- name: fastapi-svc
host: fastapi # container alias on the internal network
port: 8000
protocol: http
routes:
# Public API
- name: api-root
paths: ["/api/"]
strip_path: true
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"]
plugins:
# Enable CORS for local testing
- name: cors
config:
origins: ["*"]
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"]
headers: ["Accept", "Content-Type", "Authorization"]
credentials: false
max_age: 3600
# Health probe exposed at /gateway-health
- name: gateway-health
paths: ["/gateway-health"]
strip_path: true
methods: ["GET"]
plugins:
# Global rate-limit (optional; remove if you dont need it yet)
- name: rate-limiting
config:
second: 25
policy: local