
API gateway
akio_medue
2333333
展开
-
kong start [postgres error] could not retrieve current migrations: [postgres error] connection refus
kong 启动报错:Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: [postgres error] could not retrieve current migrations: [postgres error] connection refused Run with --v (verbose) or --vv (debug) for原创 2017-10-20 14:32:36 · 4736 阅读 · 0 评论 -
kong插件之httplog
转载:https://blog.lqsos.com/archives/33.html创建APIcurl -i -X POST \ --url http://localhost:8001/apis/ \ --data 'name=example-api' \ --data 'uris=/user' \ --data 'upstream_url=https://www.b原创 2017-12-21 17:15:53 · 7981 阅读 · 1 评论 -
kong 删除oauth2生成的Token
来源:https://blog.lqsos.com/index.php/archives/31/创建APIcurl -i -X POST \ --url http://localhost:8001/apis/ \ --data 'name=example-api' \ --data 'uris=/user' \ --data 'upstream_url=http://原创 2017-12-20 16:22:16 · 4789 阅读 · 1 评论 -
kong API gateway(二):添加API
# 可直接通过dashboard添加 --- http://localhost:8080/#/apis/add# 也可以通过Linux curl命令添加 --- curl -i -X POST \ --url http://localhost:8001/apis/ \ --data 'name=example-api' \ --da原创 2017-10-20 10:53:40 · 3438 阅读 · 2 评论 -
kong插件之Rate Limiting
文章来源:http://blog.youkuaiyun.com/qq_26656329/article/details/78842005关于Response Rate Limiting插件说明插件实现是在每个代理upstream API之前添加header信息,以便正确的拒绝处理该请求; 插件启用的时候,响应时会告诉客户端可以请求多少次、有多少次请求可以用; 比如:X-RateLimi...原创 2017-12-19 14:04:51 · 3252 阅读 · 0 评论 -
kong api可视化管理工具konga安装使用教程
安装这个有些小坑,根据报错信息都可以解决。安装依赖# 我的是Deepin 15.4,其它版本系统自行搜索sudo apt-get install nodejs npm gulpsudo npm install -g bowersudo npm install -g sails安装kongagit clone https://github.com/pantsel/konga.gitcd原创 2017-11-06 11:47:51 · 15864 阅读 · 2 评论 -
kong api gateway 插件之acl
添加一个APIcurl -i -X POST \ --url http://localhost:8001/apis/ \ --data 'name=example-api' \ --data 'uris=/user' \ --data 'upstream_url=http://test.my'返回值{ "created_at":1509616750000原创 2017-11-03 10:38:41 · 3784 阅读 · 0 评论 -
kong API gateway(五):upstreams&targets
# 官文 --- https://getkong.org/docs/0.11.x/admin-api/#add-upstream# 参数 --- name // 这是一个可以在某个upstream_url字段中引用的名称api。 slots // 可选的 负载均衡器算法中的key(10- 65536,默认为1000)。 orderlist原创 2017-10-20 17:01:04 · 2459 阅读 · 1 评论 -
kong API gateway(四):插件
# 参数 --- id //可选的 插件id name // 可选的 插件名称 api_id // 可选的 基于该api_id字段的列表中的过滤器 consumer_id // 可选的 size // 可选,默认为100 对要返回的对象数量的限制 offset // 可选的 用于分页的光标 offset是一个对象标识符原创 2017-10-20 15:27:47 · 2535 阅读 · 0 评论 -
kong API gateway(三):consumers
# 官文 --- https://getkong.org/docs/0.11.x/getting-started/adding-consumers/# 通过Dashboard添加 --- http://localhost:8080/#/consumers# 通过Linux的curl命令添加参数: username // 必填 consumers唯一值原创 2017-10-20 14:51:32 · 1270 阅读 · 0 评论 -
kong API gateway(一):安装
# 下载&安装# git https://github.com/Kong/kong --- wget https://bintray.com/kong/kong-community-edition-deb/download_file?file_path=dists/kong-community-edition-0.11.0.xenial.all.deb sudo apt-g原创 2017-10-20 10:50:55 · 2592 阅读 · 0 评论 -
php 操作kong&oauth2.0插件
本页地址<?php/** * Created by PhpStorm. * User: he * Date: 17-10-31 * Time: 上午10:36 *//* * ==========================================================================================================原创 2017-10-31 10:39:17 · 2269 阅读 · 0 评论 -
PHP 请求kong返回no API found with those values
<?php $curl = curl_init('https://localhost:8443'); curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false); // 可以正常访问 curl_setopt($curl,CURL原创 2017-10-28 17:49:46 · 3932 阅读 · 1 评论 -
kong插件之Request Transformer
来源:https://blog.lqsos.com/archives/35.html说明插件实现是根据客户端发送的请求头中的参数,通过请求头参数添加或替换参数内容; 插件执行顺序remove->rename->replace->add->append创建APIcurl -i -X POST \ --url http://localhost:8001/apis/ \ --data '原创 2017-12-22 10:52:16 · 6315 阅读 · 1 评论