Files
wwjcloud/tools/deploy/kong/kong.yaml
万物街 127a4db1e3 feat: 完成sys模块迁移,对齐PHP/Java框架
- 重构sys模块架构,严格按admin/api/core分层
- 对齐所有sys实体与数据库表结构
- 实现完整的adminapi控制器,匹配PHP/Java契约
- 修复依赖注入问题,确保服务正确注册
- 添加自动迁移工具和契约验证
- 完善多租户支持和审计功能
- 统一命名规范,与PHP业务逻辑保持一致
2025-09-21 21:29:28 +08:00

43 lines
1.0 KiB
YAML

_format_version: '3.0'
_transform: true
services:
- name: wwjcloud-backend
url: http://host.docker.internal:3001
routes:
- name: frontend-api
paths:
- /api
strip_path: false
methods: [GET, POST, PUT, PATCH, DELETE]
- name: admin-api
paths:
- /adminapi
strip_path: false
methods: [GET, POST, PUT, PATCH, DELETE]
plugins:
- name: rate-limiting
config:
minute: 600
policy: local
- name: request-transformer
config:
add:
headers:
- 'x-forwarded-for: kong'
- name: response-transformer
- name: proxy-cache
config:
strategy: memory
content_type:
- application/json
cache_ttl: 30
- name: prometheus
- name: correlation-id
config:
header_name: X-Request-ID
generator: uuid
echo_downstream: true
- name: request-size-limiting
config:
allowed_payload_size: 10