Kong.Net icon indicating copy to clipboard operation
Kong.Net copied to clipboard

目前最新的0.0.4版本支持什么版本的kong ?

Open DUWENINK opened this issue 6 years ago • 3 comments

您好,kong版本经过好几轮迭代更新,有的也不向下兼容,我想问一下 目前最新的0.0.4版本支持什么版本的kong ?

DUWENINK avatar Jul 16 '19 08:07 DUWENINK

目前支持 1.2.x,参考文档为:https://docs.konghq.com/1.2.x/admin-api/

lianggx avatar Jul 17 '19 02:07 lianggx

按照官方教程 搭建的网关 http://ddns.duwen.ink:48001/ 版本为 Kong node: http://kong:8001 v1.2.1 网关为docker搭建 转发到内网的192.168.1.95的8001端口,然后二次转发到 ddns.duwen.ink:48001 appsetting配置文件为 ` { "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*", "kong": { "host": "http://ddns.duwen.ink:28001", "upstream": { "tags": [ "example", "low-priority" ], "name": "Kong.Example", "hash_on": "none", "healthchecks": { "active": { "unhealthy": { "http_statuses": [ 429, 500, 501, 502, 503, 504, 505 ], "tcp_failures": 1, "timeouts": 1, "http_failures": 1, "interval": 5 }, "type": "http", "http_path": "/kong/healthchecks", "timeout": 1, "healthy": { "successes": 1, "interval": 5, "http_statuses": [ 200, 302 ] }, "https_verify_certificate": true, "concurrency": 1 }, "passive": { "unhealthy": { "http_statuses": [ 429, 500, 501, 502, 503, 504, 505 ] }, "healthy": { "http_statuses": [ 200, 302 ] }, "type": "http" } }, "hash_on_cookie_path": "/", "hash_fallback": "none", "slots": 10000 }, "target": { "tags": [ "example", "low-priority" ], "target": "192.168.1.207:80", "weight": 100 } }

}

调试过程中发现返回 {"message":"Method not allowed"} ` image 面板地址为 http://ddns.duwen.ink:48080/#!/

DUWENINK avatar Jul 17 '19 03:07 DUWENINK

按照官方教程 搭建的网关 http://ddns.duwen.ink:48001/ 版本为 Kong node: http://kong:8001 v1.2.1 网关为docker搭建 转发到内网的192.168.1.95的8001端口,然后二次转发到 ddns.duwen.ink:48001 appsetting配置文件为 ` { "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*", "kong": { "host": "http://ddns.duwen.ink:28001", "upstream": { "tags": [ "example", "low-priority" ], "name": "Kong.Example", "hash_on": "none", "healthchecks": { "active": { "unhealthy": { "http_statuses": [ 429, 500, 501, 502, 503, 504, 505 ], "tcp_failures": 1, "timeouts": 1, "http_failures": 1, "interval": 5 }, "type": "http", "http_path": "/kong/healthchecks", "timeout": 1, "healthy": { "successes": 1, "interval": 5, "http_statuses": [ 200, 302 ] }, "https_verify_certificate": true, "concurrency": 1 }, "passive": { "unhealthy": { "http_statuses": [ 429, 500, 501, 502, 503, 504, 505 ] }, "healthy": { "http_statuses": [ 200, 302 ] }, "type": "http" } }, "hash_on_cookie_path": "/", "hash_fallback": "none", "slots": 10000 }, "target": { "tags": [ "example", "low-priority" ], "target": "192.168.1.207:80", "weight": 100 } }

}

调试过程中发现返回 {"message":"Method not allowed"} ` image 面板地址为 http://ddns.duwen.ink:48080/#!/

不好意思,看错了,host调用的是之前0.13版本的网关

DUWENINK avatar Jul 17 '19 03:07 DUWENINK