用nginx的ssl协议来代理workman的websocket服务

用nginx的ssl协议来代理workman的websocket服务 workman的https请求方式
在 2016年07月29日 那天写的
0 views

1:nginx版本必须大于1.9.0

2:编译的时候必须加上这两个参数 –with-stream –with-stream_ssl_module

upstream test{

workman 的端口

server 192.168.100.12:6666;
}
server {
listen 443 ssl;
server_name test.com;#外部访问的地址

proxy_read_timeout 86400;#避免超时(重要)

location /{
proxy_pass http://test; #upstream 定义的名字
}

ssl on;
ssl_certificate xxxxxxx.pem;
ssl_certificate_key xxxxxxxx.key;
ssl_session_timeout 5m;
ssl_protocols xxxxxxxxx;
ssl_ciphers xxxxxxxxxxxxxx;
ssl_prefer_server_ciphers on;
}

posted @ 2016-10-18 21:09  石Stone头  阅读(2113)  评论(0)    收藏  举报