openresty / lua-resty-upstream-healthcheck

Health Checker for Nginx Upstream Servers in Pure Lua
515 stars 134 forks source link

unix socket upstream #95

Open notnooblord opened 1 year ago

notnooblord commented 1 year ago

Hi! Kindly asking, since I failed to find any mention about unix sockets like unix:/tmp/forwarded.sock (without port) being supported in upstreams.

(You can send plain http requests to them since they are essentialy just tcp sockets)

Can anyone confirm and possibly update docs ?

Update: https://github.com/openresty/lua-resty-upstream-healthcheck/blob/f0b6528fe08415e900d95e78133d2612860957b2/lib/resty/upstream/healthcheck.lua#L230

it looks like this code is exactly for unix sockets, but not sure.