You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/10 15:06:11 UTC

[GitHub] [apisix-helm-chart] tutuV opened a new issue #177: Real-ip plug error: need to build APISIX-OpenResty to support setting real ip

tutuV opened a new issue #177:
URL: https://github.com/apache/apisix-helm-chart/issues/177


   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/l
 ib -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/l
 ib -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
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-helm-chart] tutuV commented on issue #177: Real-ip plug error: need to build APISIX-OpenResty to support setting real ip

Posted by GitBox <gi...@apache.org>.
tutuV commented on issue #177:
URL: https://github.com/apache/apisix-helm-chart/issues/177#issuecomment-965951842


   @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 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-helm-chart] tokers commented on issue #177: Real-ip plug error: need to build APISIX-OpenResty to support setting real ip

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #177:
URL: https://github.com/apache/apisix-helm-chart/issues/177#issuecomment-966183777


   > @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 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-helm-chart] tokers commented on issue #177: Real-ip plug error: need to build APISIX-OpenResty to support setting real ip

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #177:
URL: https://github.com/apache/apisix-helm-chart/issues/177#issuecomment-965925598


   Could you describe your problem elaborately? I didn't understand the point you want to show us.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org