Closed stlnkm closed 5 years ago
Can your Nginx resolve redis
? How have you setup your resolvers? Remember Nginx doesn't use system resolver.
Thanks for your reply! Yes, I have setup resolver directive: resolver 127.0.0.11 valid=30s local=on; Everything goes well except leaving an error log, when directive lua_socket_log_errors on.
Hi! I use docker compose contains 3 services: a openresty naming app, a mysql service naming db, and a redis service naming redis. Part of nginx config below:
And I run the /start location, and found a error in the nginx's error log file:
How can I fix it? Thx!