Commit Graph

87 Commits

Author SHA1 Message Date
vkill
198628df75 bugfix(CLI): fixed node_ssl_listen conf not working #321 (#324) 2019-07-28 12:48:46 +08:00
YuanSheng Wang
bce0c673c5
CLI: added shdict upstream-healthcheck. (#279) 2019-07-21 09:08:06 +08:00
YuanSheng Wang
95ed5abee8
change(CLI): simple code style and check the openresty version at init (#278)
phase.
2019-07-21 08:49:29 +08:00
coolsoul
170060619a change: check the openresty version in Lua land. (#275)
* check the openresty version in Lua land.

Fix #245.
2019-07-21 08:05:54 +08:00
YuanSheng Wang
5e119c4828
luarocks: added new dependency lua-resty-healthcheck. (#249)
* luarocks: added new dependencies `lua-resty-healthcheck` and `lua-resty-worker-event`.

* feature(balancer): fetched health node from upstream nodes in balancer phase when enabled 
  healthcheck.
2019-07-17 23:52:15 +08:00
YuanSheng Wang
35febe0609
change(CLI): code style. (#258)
use 4 space instead of `tab`.
simple code style.
short length of source code.
2019-07-17 23:36:29 +08:00
vkill
89f18e4349 bugfix(CLI): added timeout to init_etcd (#257) 2019-07-17 21:57:41 +08:00
WenMing
3e1f8e6121
feature: added configure for anti-ReDoS. (#250)
This configuration can avoid catastrophic backtracking of regular expressions, but to solve this problem thoroughly, we need to replace the regular engine, such as RE2.
2019-07-15 13:14:07 +08:00
coolsoul
faeb07cadb feature: added check for openresty version and fixed style of documents. (#244) 2019-07-14 09:32:22 +08:00
WenMing
9fa04a923c
feature: supported real_ip configure in nginx.conf and added functions to get ip and remote ip. (#236)
* feature: supported real_ip configure in nginx.conf and added functions to get ip and remote ip.

* fixed code style.
2019-07-12 11:25:17 +08:00
YuanSheng Wang
cd4eb7deed CLI: changed code style. (#225) 2019-07-09 22:28:02 +08:00
希望之石
f92f8a7829 bugfix: issue #223 (#224)
need to add `-c xxx` option for `stop` and `reload` action.

apisix 脚本stop、reload 也需要增加 -c 参数指定 nginx.conf 路径
2019-07-09 17:59:30 +08:00
nic-chen
5fccb78fa1 bugfix: set configuration file to avoid using a wrong one (#220) 2019-07-08 12:24:18 +08:00
Yuansheng
1e8459c21c bugfix: compiled module 'rapidjson' with the luajit of openresty.
Fix #206.
2019-07-07 08:31:02 +08:00
YuanSheng Wang
565cb1653c
feature: added init action in makefile to initialize the runtime (#205)
* feature: added `init` action in makefile to initialize the runtime
  environment.
* doc: added more doc about `make` command.
* CLI: find the Lua from default PATH.
* bugfix: used short connection when to fetch node status.
2019-07-05 19:01:20 +08:00
YuanSheng Wang
764280f5ff
CLI: added default value for node ssl listen and allowed to run without http_stub_status_module. (#203)
* CLI: added default value for `node ssl listen` and allowed to run
  without `http_stub_status_module`.

* travis: fixed the wrong argument when calling CLI.
removed the `sudo` when run the CLI tool.
added logs folder to `apisix` project.
2019-07-05 11:16:24 +08:00
vkill
1e302f0545 Support configure node_ssl_listen 2019-07-05 08:59:14 +08:00
YuanSheng Wang
2a9ab09401
feature: supported to use a separate port for admin dashboard. (#194)
* feature: supported to use a separate port for admin dashboard, and disabled admin port by default.
* travis: run a mini test case for CLI.
2019-07-03 21:03:17 +08:00
YuanSheng Wang
cf76ed5e4c
bumped version to v0.5 . (#183)
* bumped version to v0.5 .
* bugfix: added dependencies lua path.
* travis: used the CLI of self.
2019-07-02 14:14:57 +08:00
YuanSheng Wang
a6b7892272
bugfix: added http_ prefix in CLI. (#182) 2019-07-02 13:01:54 +08:00
Yuansheng
c94b40e6cb bugfix: showed an error message if user installed cjson by luarocks.
Fix #164.
2019-06-27 22:00:21 +08:00
Yuansheng
7dbcea8571 feature: supported to manage ssl item by admin API and HTTPS client request. 2019-06-24 18:49:30 -04:00
YuanSheng Wang
b44a6ab77d
CLI: fixed the wrong path and cpath in CLI. (#151)
* CLI: fixed the wrong path and cpath in CLI, supported to start/stop
  apisix server when the dependencies library was collected to apisix
  home folder.
2019-06-23 16:45:15 +08:00
YuanSheng Wang
72e0fe2393
feature: supported to collect nginx status and pushed it to etcd. (#149)
* feature: supported to collect nginx status and pushed it to etcd.
* the return value of the exported api is the same as the other methods in the plugin.
2019-06-22 08:24:02 +08:00
Yuansheng
f15230b3c8 CLI: set the core dump file directory permissions to 666. 2019-06-21 16:28:24 +08:00
Yuansheng
43327b3697 bugfix: maybe missing with-http_stub_status_module module in openresty
Fix #144.

change: checked the current directory if it's a apisix home folder,
  if not then use `/usr/local/openresty`.

change: changed the core file folder to `/tmp/apisix_cores`.
2019-06-21 16:21:02 +08:00
Yuansheng
0f5a80441d test: supported to run test case if the dependency files are installed
to `deps` folder.
2019-06-20 09:18:11 -04:00
Yuansheng
77fdaaa27d feature: supported to load the dependencies library in apisix
home folder.
2019-06-16 07:46:17 +08:00
YuanSheng Wang
2ebc2cee69
test: added a fully test case for gateway node. (#90)
* test: added a fully test case for gateway node.
2019-06-14 10:27:45 +08:00
YuanSheng Wang
8cfd7d4180
feature: implemented routes API for admin user, allowed user to manage route. (#79)
* feature: supported to generate admin API basic configurations when the admin API is enabled.
* feature: supported to manage route API for admin user, it contains: PUT, GET, DELETE and POST.
* feature: used json schema to check if the request configuration is valid.
2019-06-13 12:01:36 +08:00
YuanSheng Wang
0bac20f4d4
feature: implemented plugin limit-conn. (#75)
* feature: implemented plugin `limit-conn`.
* luarocks: updated the library `lua-resty-ngxvar` version to 0.3.
2019-06-11 17:31:40 +08:00
Yuansheng
16e5b64a37 bugfix: used smaller timeout for etcd, avoided socket leak. 2019-06-11 07:41:49 +08:00
Yuansheng
c9d0879194 test: checked the error log.
plugin prometheus: renamed the share dict name to `prometheus-metrics`.
2019-06-10 17:25:49 +08:00
Yuansheng Wang
b62b22a5ce bugfix: removed rewrite phase. 2019-06-06 10:49:29 +08:00
Yuansheng Wang
8cea2c66d7 bugfix: used a single option as the apisix configuration prefix name. 2019-06-05 14:21:25 +08:00
Yuansheng Wang
ee6b87c688 change: installed the config file to /usr/local/apisix. 2019-06-04 10:13:05 -04:00
Yuansheng Wang
2fe68e854b luarocks: only installed Lua modules and configure files. 2019-06-04 10:32:14 +08:00