nginx with stream(tcp and udp) enabled
1.0K
ssr-proxy.conf of your ownmkdir /root/nginx/conf.d.stream
vim /root/nginx/conf.d.stream/ssr-proxy.conf
stream {
log_format basic 'client:$remote_addr $time_local $protocol $status sent:$bytes_sent recv:$bytes_received time:$session_time'
'upstream:$upstream_addr sent:$upstream_bytes_sent recv:$upstream_bytes_received time:$upstream_connect_time';
access_log /var/log/nginx/stream_access.log basic buffer=32k flush=5s;
error_log /var/log/nginx/stream_error.log warn;
upstream linuxone_backends {
hash $remote_addr;
server 148.100.100.62:443 max_fails=2 fail_timeout=5s;
}
server {
listen 443;
proxy_pass linuxone_backends;
proxy_timeout 600s;
proxy_connect_timeout 30s;
}
}
docker run -itd --name nginx \
-p 80:80 -p 443:443 \
-v /root/nginx/conf.d.stream:/etc/nginx/conf.d.stream/ \
ykfq/nginx-with-stream:1.12.2
Only change the ip and port of your ssr client, then enjoy your totally new service !
Content type
Image
Digest
Size
144 MB
Last updated
over 8 years ago
docker pull ykfq/nginx-with-stream