云原生API网关-Kong部署与konga基本使用
Nginx
server{
listen 443 ssl;
location / {
proxy_pass http://127.0.0.1:8100;
}
location /openApi {
proxy_pass http://172.31.233.35:7100/openApi;
}
}
Kong
{
"id": "f880b21c-f7e0-43d7-a2a9-221fe86d9231",
"path_handling": "v1",
"paths": [
"/openApi"
],
"destinations": null,
"headers": null,
"protocols": [
"http"
],
"methods": [
"GET",
"POST"
],
"snis": null,
"service": {
"host": "172.31.233.35",
"created_at": 1715153376,
"connect_timeout": 60000,
"id": "213fb407-95fa-46f6-b187-f3c8cd68cf9d",
"protocol": "http",
"name": "xxx_api",
"read_timeout": 60000,
"port": 7100,
"path": null,
"updated_at": 1715153376,
"retries": 5,
"write_timeout": 60000,
"tags": [],
"client_certificate": null,
"extras": {}
},
"name": "xxxx_api",
"strip_path": false,
"preserve_host": false,
"regex_priority": 0,
"updated_at": 1715153858,
"sources": null,
"hosts": [
"xxxxxx.com"
],
"https_redirect_status_code": 426,
"tags": null,
"created_at": 1715153426
}