Open tutuV opened 3 years ago
Could you describe your problem elaborately? I didn't understand the point you want to show us.
@tokers I have enabled the real-IP plugin, but an error occurs: need to build APISIX-OpenResty to support setting real ip. It is said in the QQ group that Apisix lacks the client. Lua module, I wonder whether There is no OpenResty in Apisix or what I need to configure ?
@tokers I have enabled the real-IP plugin, but an error occurs: need to build APISIX-OpenResty to support setting real ip. It is said in the QQ group that Apisix lacks the client. Lua module, I wonder whether There is no OpenResty in Apisix or what I need to configure ?
The current docker image doesn't base on the patched OpenResty, so some features like the real-ip plugin won't support, it'll be support soon. cc @imjoey
env: k8s: 1.21 apisix-helm-chart: 0.7.2
install cmd: helm install apisix apisix \ -f apisix/values.yaml \ --set apisix.replicaCount=1 \ --set gateway.type=LoadBalancer \ --set admin.allow.ipList="{0.0.0.0/0}" \ --set etcd.enabled=true \ --set etcd.persistence.enabled=false \ --set ingress-controller.enabled=true \ --set ingress-controller.config.apisix.serviceNamespace=apisix \ --set ingress-controller.config.kubernetes.apisixRouteVersion="apisix.apache.org/v2beta2" \ --set dashboard.enabled=true \ --namespace apisix
and then: k exec -it pod/apisix-5bb959ccc-cs75j -n apisix /bin/bash
bash-5.1# openresty -V nginx version: openresty/1.19.3.1 built by gcc 10.2.1 20201203 (Alpine 10.2.1_pre1) built with OpenSSL 1.1.1k 25 Mar 2021 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.9 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' --with-pcre --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-pcre-jit --with-sha1-asm --with-stream --with-stream_ssl_module --with-threads --with-stream --with-stream_ssl_preread_module
bash-5.1# nginx -V nginx version: openresty/1.19.3.1 built by gcc 10.2.1 20201203 (Alpine 10.2.1_pre1) built with OpenSSL 1.1.1k 25 Mar 2021 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.9 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' --with-pcre --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-pcre-jit --with-sha1-asm --with-stream --with-stream_ssl_module --with-threads --with-stream --with-stream_ssl_preread_module
bash-5.1# resty -e "local ok, apisix_ngx_client = pcall(require, 'resty.apisix.client');print(ok)" env: can't execute 'perl': No such file or directory
bash-5.1# cd /usr/local/openresty/lualib/resty bash-5.1# ls aes.lua limit md5.lua redis.lua sha256.lua signal.lua websocket core lock.lua memcached.lua sha.lua sha384.lua string.lua core.lua lrucache mysql.lua sha1.lua sha512.lua upload.lua dns lrucache.lua random.lua sha224.lua shell.lua upstream bash-5.1# find . -name apisix bash-5.1# find . -name client.lua ./websocket/client.lua bash-5.1# bash-5.1# exit