ffay / proxygateway Goto Github PK
View Code? Open in Web Editor NEWProxy Gateway基于openresty(nginx lua module)开发,可以作为接口网关(api gateway)使用,整合业务模块接口,微服务治理聚合,通过web配置界面,能够轻松进行代理配置管理,支持负载均衡,服务器状态检测等
License: MIT License
Proxy Gateway基于openresty(nginx lua module)开发,可以作为接口网关(api gateway)使用,整合业务模块接口,微服务治理聚合,通过web配置界面,能够轻松进行代理配置管理,支持负载均衡,服务器状态检测等
License: MIT License
我现在所有的服务器都用postgresql,对postgresql比较熟悉,我试着增加对postgresql的支持,装了pgmoon模块,也可以连上数据库,但是后面报错,因为对lua也不是很熟悉,不知道作者能否增加对postgresql数据库的支持。希望您能增加对postgresql的支持,我做测试,如果您愿意增加,请联系我的
qq 171958445,我帮您测试。
安装pgmoon包.
下面的postgresql 为建表的SQL语句。
CREATE TABLE agw_api (
id serial PRIMARY KEY,
service_id int DEFAULT NULL,
request_uri varchar(64) DEFAULT NULL,
original_uri varchar(64) DEFAULT NULL,
uri_limit_seconds int NOT NULL DEFAULT '0',
uri_limit_times int NOT NULL DEFAULT '0',
ip_uri_limit_seconds int NOT NULL DEFAULT '0',
ip_uri_limit_times int NOT NULL DEFAULT '0',
description varchar(128) DEFAULT NULL
);
INSERT INTO agw_api (service_id, request_uri, original_uri, description) VALUES
( 1, '/', '/', 'all request map');
CREATE TABLE agw_domain (
id serial PRIMARY KEY,
name varchar(255) NOT NULL
);
INSERT INTO agw_domain (name) VALUES
('localhost');
CREATE TABLE agw_server (
id serial PRIMARY KEY,
service_id int DEFAULT NULL,
ip varchar(64) DEFAULT NULL,
port int DEFAULT NULL,
protocol varchar(32) NOT NULL DEFAULT 'http://',
weight int DEFAULT NULL,
status int DEFAULT 1,
description varchar(255) DEFAULT ''
);
INSERT INTO agw_server (service_id, ip, port, protocol, weight, status, description) VALUES
( 1, '127.0.0.1', 8081, 'http://', 1, 1, 'proxygateway management');
CREATE TABLE agw_service (
id serial PRIMARY KEY,
domain_id int NOT NULL,
name varchar(64) DEFAULT NULL,
host varchar(255) NOT NULL DEFAULT '',
description varchar(64) DEFAULT NULL
);
INSERT INTO agw_service (domain_id, name, host, description) VALUES
( 1, 'default', 'localhost', 'default proxy configuration');
System error, please try again later 这个错误
兄弟后续有更新吗?
服务器监控,将down掉的服务器自动剔除,恢复以后自动加入,不好使
这个就是基于 nginx 做的负载均衡吗 我怎么请求 服务器 转发到别的服务器上
404 Not Found
openresty/1.13.6.1
全是这个,而且删除原来的配置,再次配置成一样,也是这样,感觉上是配置没有生效
我配置一个域名,然后在pwg所在的机器上面配置了自定义的dns服务器地址,将域名 已经配置到pwg所在的ip上,直接访问域名没有起作用
一直报这个错
12 [error] 17114#0: *54 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 110.157.235.26, server: localhost, request: "GET /pkgInfo?id=14432 HTTP/1.1", upstream:
负载均衡的max_fails与fails_timeout俩参数如何设置或是暂时还不支持该配置呢?
不支持WebSocket,使用ws://localhost 请求返回的状态是200,而非WebSocket的长连接状态101。能处理支持吗?
您好,我按配置配了,curl http://127.0.0.1:8081 返回 302错误,怎么解决
感谢作者的辛勤付出。
请教:
api中 是否后续版本会有接口添加/删除安全类访问控制参数,
比如:实现auth_basic_user_file类似的效果?
location / {
try_files $uri $uri/ =404;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
我添加域名 *.abc.com,然后访问 1.abc.com 页面404
服务模块 后端主机域名已设
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.