Commit Graph

175 Commits

Author SHA1 Message Date
罗泽轩
1f09c1ca05
chore(cli): tweak error msg (#3952)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-31 19:10:51 +08:00
罗泽轩
0c1b208588
fix: correct the validation for ssl_trusted_certificate (#3832)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-16 09:01:26 +08:00
Kafilat Adeleke
8d7f099b1a
fix: error will be reported when try to start apisix without the which utility (#3694) 2021-03-01 09:10:30 +08:00
罗泽轩
c8139fc6ab
change: don't hack the prefix of LuaRocks (#3508)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-03 21:33:03 +08:00
罗泽轩
8ac5bd5c81
fix(cli): add missing entry (#3462)
Fix #3461
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-31 13:51:46 +08:00
fukiki
98be48978f
fix: use luajit by default when run apisix (#3335)
Fix : #3281
2021-01-29 23:57:46 +08:00
Alex Zhang
59cc446c15
chore: refactor ops in command line(CLI) (#2929) 2020-12-09 13:23:21 +08:00
willmafh
f4161d39a4
chore: minor change in bin/apisix (#2847) 2020-11-25 19:27:04 +08:00
Alex Zhang
296f535d39
refactor: moved etcd initialiation to apisix/cli/etcd.lua (#2685) 2020-11-24 19:13:48 +08:00
罗泽轩
39840f9d8d
feat: allow whitespace-wrapped variables in config.yaml (#2811) 2020-11-24 16:06:11 +08:00
Liu Hong
82628f076b
fix: min_etcd_version is a nil value when apisix init_etcd (#2831)
Signed-off-by: liuhong <liuhong_yewu@cmss.chinamobile.com>
2020-11-24 15:14:32 +08:00
jxhecong
009cab65b5
fix(CLI): add Authorization header while enable etcd auth (#2690) 2020-11-20 11:35:51 +08:00
Shuyang Wu
36162e3607
fix: move conf/cert to t/certs and disable ssl by default (#2112) 2020-11-20 11:10:01 +08:00
罗泽轩
6b52811557
feat: support ENV variable in configuration (#2743)
Close #2675.
2020-11-14 19:39:29 +08:00
罗泽轩
f790c92b23
test: remove temporary hack (#2625) 2020-11-04 17:17:09 +08:00
罗泽轩
366d5040cf
test: make CI pass again (#2619) 2020-11-04 15:45:27 +08:00
Alex Zhang
61cd91440b
improve: refactor partial command line tool. (#2612)
This PR moves some environmental variables to `apisix/cli/environ.lua`,
and some auxiliary codes to `apisix/cli/util.lua`, which reduces the size
of `bin/apisix`.
2020-11-04 11:26:17 +08:00
Alex Zhang
5191374545
feat: support TLS connection with etcd. (#2548)
Support the TLS connection when communicating with etcd cluster. We added a configuration item to custom the certificate verification. Whether to setup TLS connection or not depends on the endpoints' scheme, for instance, when endpoints are:

```
etcd:
  host:
    - "https://127.0.0.1:2379"
    - "https://127.0.0.1:3379"
```

APISIX will originate TLS connection automatically, and the Server Name Indication extention will be set by the endpoint host (`127.0.0.1` in above case). Note by default APISIX will verify the certificate, close the verification in configuration explicitly if you want to bypass it.

```
etcd:
  tls:
    verfiy: false
```
2020-11-03 13:53:39 +08:00
YuanSheng Wang
edb8c7c590
bug(CLI): CI failed, failed to load apisix.cli.ngx_tpl (#2588)
* for test.

* CLI: load the Lua module after updated the `package.path`.

* CI: used patch to make the CI run normal.

* bugfix: add sudo

* chore:  print the location of `apisix`.

* reverted not related change.
2020-11-01 14:54:24 +08:00
Alex Zhang
952450bd76
improve(CLI): move ngx_tpl to apisix/cli/ngx_tpl.lua (#2581) 2020-10-31 22:56:42 +08:00
YuanSheng Wang
f2f5ab9766
feat: support json encoding escape for access logs (#2269)
fix #2266 .
2020-10-30 16:07:24 +08:00
罗泽轩
b6eb6f4842
change: rename APIX_WORKER_PROCESSES to APISIX_WORKER_PROCESSES (#2552)
Close #2517.
2020-10-30 08:14:04 +08:00
YuanSheng Wang
b23475fcba
feat: upgrade skywalking plugin to support skywalking 8.0 . (#2389) 2020-10-29 15:29:52 +08:00
Alex Zhang
d87ce33485
feature: support injecting lua_ssl_trusted_certificate. (#2519) 2020-10-28 06:49:20 +08:00
YuanSheng Wang
6a7dfa6775
feat: implement api breaker plugin. (#2455)
Co-authored-by: liuheng <liuhengloveyou@gmail.com>
2020-10-27 13:40:23 +08:00
Vinci Xu
1a6fb8ec2c
feat(CLI): worker and cpu optimization (#2153) 2020-10-22 16:28:26 +08:00
罗泽轩
d86c480ec5
fix: previously we could not merge configuration without middle layer (#2476) 2020-10-21 09:59:45 +08:00
尚墨
1fe4e50f5a
chore: show help message if the argument is invalid. (#2408) 2020-10-19 10:35:42 +08:00
YuanSheng Wang
c9392627a8
bugfix: empty allow_admin means that any IP is allowed to access Admin API and Dashboard (#1979)
fix #1939
2020-10-17 19:26:48 +08:00
Turein
90109ca678
feature: support multiple ports like stream listen in http and https … (#2409)
fix #1195
2020-10-17 17:44:26 +08:00
YuanSheng Wang
c65f5c9465
feature: plugin limit-count support to use redis cluster (#2406)
fix #638

Co-authored-by: liuheng <liuhengloveyou@gmail.com>
2020-10-17 08:21:47 +08:00
RocFang
4776dc8a66
fix: it does'nt make sence to compare etcd_version, since it's nil. (#2390)
no need to define a new local cluster_version since it's defined previously.
2020-10-13 23:15:42 +08:00
YuanSheng Wang
5614a95758
feat(http-logger): support for specified the log formats via admin API (#2309)
curl http://****/apisix/admin/plugin_metadata/http-logger -d '
{
    "log_format": {
        "host": "$host",
        "@timestamp": "$time_iso8601",
        "client_ip": "$remote_addr"
    }
}'

when we enabled plugin http-logger, we will get the message body like:

{"host":"localhost","@timestamp":"2020-09-23T18:29:07-04:00","client_ip":"127.0.0.1","route_id":"1"}
{"host":"localhost","@timestamp":"2020-09-23T18:29:07-04:00","client_ip":"127.0.0.1","route_id":"1"}
2020-10-13 14:21:54 +08:00
dabue
40577ee1e2
chore: remove the folder 'logs' in root and replace baidu.com with github.com in test cases (#2374)
* rm log

* replace baidu.com to github.com in testcases

* keep folder logs

* remove the folder logs

* update Makefile
2020-10-12 23:49:43 +08:00
RocFang
647d8d9a62
bugfix: check every etcd version, rather than only check the first one (#2380) 2020-10-10 23:53:10 +08:00
Shuyang Wu
c228675a81
doc: update etcd installation step for v3.4 (#2346) 2020-10-04 19:15:58 +08:00
罗泽轩
a6611d3058
feat(proxy-cache): store the temporary file under cache directory. (#2317)
When the temporary file directory and cache directory are under
different disk, this option can avoid unexpected performance hurt.
2020-10-04 16:23:32 +08:00
Swayam Raina
385f2a471b
chore: remove apisix_cores (#2260) 2020-10-04 15:23:42 +08:00
Wen Ming
13b0968340
Revert "feat(http-logger): support for specified the log formats via admin API (#2294)" (#2307)
This reverts commit 89f89f3004.
2020-09-24 23:50:22 +08:00
YuanSheng Wang
89f89f3004
feat(http-logger): support for specified the log formats via admin API (#2294) 2020-09-24 20:45:50 +08:00
YuanSheng Wang
6a1fe8a546
bugfix(CLI): if the user used default token and allow any IP to access Admin API, will show a WARNING message.(#2244)
Co-authored-by: Wen Ming <moonbingbing@gmail.com>
2020-09-22 16:09:35 +08:00
Alex Zhang
e93cdbd48a
change: check etcd cluster version when init_etcd (#2233) 2020-09-16 17:46:53 +08:00
Shuyang Wu
4722198548
feature: support etcd v3 by mocking v2 API (#2036) 2020-09-16 10:19:04 +08:00
罗泽轩
b6354ec33e
feat: allow to limit client body size to protect the service (#2214) 2020-09-15 21:58:30 +08:00
seven dickens
312a97c96f
feat: define env in nginx.conf template (#2174)
Co-authored-by: lixiangyang <lixiangyang@dragonest.com>
2020-09-14 18:12:29 +08:00
redynasc
98bb5933d6
feature: implement ewma balancer for upstream node (#2001)
ewma is a different balancing implementation that will generate a weight for every backend IP based on the last server response time, basically it tries to dispatch more requests to the backends that reply faster, supposing that they are less loaded.

fix #1996
2020-08-29 23:14:16 +08:00
nic-chen
c54aec8f6c
feat: support custom access log format (#2122)
fix #2009
2020-08-26 16:51:44 +08:00
罗泽轩
0bb8f4693a
change: allow users to see warnings by default (#2116)
Previously, with the default configure, people don't have the chance to
ignore the warning message.
2020-08-26 14:19:46 +08:00
YuanSheng Wang
cf882bda1e
feature: divide config.yaml into two files config-custom.yaml & confi… (#2023)
* feature: divide config.yaml into two files config-custom.yaml & config-default.yaml .

fix #1923
2020-08-18 20:18:55 +08:00
罗泽轩
0b00e82773
bugfix: avoid setting Server header twice (#2065)
Fix #2064.
2020-08-15 17:19:35 +08:00