and it would be cool to add the use of a different type of stream, using SNI it would be very useful for proxying for the X-Ray reality protocol.
what is there is for something else and it won't work to do it that way
required:
ngx_stream_module
which is in the package - nginx-extras
Please add the use of unix://dir/app.socket
and it would be cool to add the use of a different type of stream, using SNI it would be very useful for proxying for the X-Ray reality protocol. what is there is for something else and it won't work to do it that way
required: ngx_stream_module which is in the package - nginx-extras
example:
`user nginx; worker_processes auto;
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
error_log /logs/nginx_error; pid /var/run/nginx.pid;
events { worker_connections 1024; } stream { upstream reality { server xray:12000; } map_hash_bucket_size 128; map $ssl_preread_server_name $sni_name { example.com reality; default other; } server { listen 443 reuseport; proxy_pass $sni_name; proxy_protocol on; ssl_preread on; } } `