nginx: [emerg] invalid number of arguments in "resolver_timeout" directive in /usr/local/apisix/conf/nginx.conf:54
Step 1
docker pull apache/apisix:1.2-alpine
Step 2
docker run --name gateway \
-v `pwd`/example/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml \
-v `pwd`/example/apisix_log:/usr/local/apisix/logs \
-v `pwd`/example/dashboard:/usr/local/apisix/dashboard \
-p 9080:9080 \
-p 9443:9443 \
-d apache/apisix:1.2-centos
the container exits, check the log and get this
nginx: [emerg] invalid number of arguments in "resolver_timeout" directive in /usr/local/apisix/conf/nginx.conf:54
I tried to compile manually and get look like a network error😂
+ luarocks install https://github.com/apache/incubator-apisix/raw/master/rockspec/apisix-1.2-0.rockspec '--tree=/usr/local/apisix/deps'
Error: Error fetching file: Failed downloading https://github.com/apache/incubator-apisix/raw/master/rockspec/apisix-1.2-0.rockspec - apisix-1.2-0.rockspec
@to2false do you use the old version config.yaml of apisix?
@moonming no, I cloned the latest repo
the same error with @to2false , seems the config file is not correct
I build local manually, get same error again
I replace apisix conf with https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml, it works. the conf for this repo is old, and there is a PR to submit.