Archive for 2018-05-15

Nginx TCP代理显示前端IP地址

stream { server { listen 12345; proxy_connect_timeout 1s; proxy_timeout 3s; proxy_pass 127.0.0.1:3306; proxy_bind $remote_addr transparent; } }