是否有用于Shadowsocks-client(socks5)的NGINX代理的解决方案

时间:2019-03-29 16:33:43

标签: nginx

我正在尝试使NginX在连接到shadowsocks-client时使用代理,如下所示。

代理服务器的设置通常如下:

Browser[SwitchyOmega] -> shadowsocks-client --> shadowsocks-server[Self-built server or shared by others]  --> Remote

对于冗余和负载平衡:

Browser[SwitchyOmega] -> nginx -- shadowsocks-client[all in one server with diffent port] --> shadowsocks-server[Self-built server or shared by others]  --> Remote

1 个答案:

答案 0 :(得分:0)

# get nginx
RUN git clone https://github.com/nginx/nginx.git \
    && git clone https://github.com/zhouchangxun/ngx_healthcheck_module.git \
    && cd nginx/    \
    && git checkout branches/stable-1.12    \
    && git apply ../ngx_healthcheck_module/nginx_healthcheck_for_nginx_1.12+.patch  \
    && mkdir -p /opt/nginx  \
    && ./auto/configure --prefix=/opt/nginx --with-pcre --with-stream --add-module=../ngx_healthcheck_module/   \
    && make && make install