NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.38k stars 2.71k forks source link

socket and stream support #4070

Open bkeenke opened 1 month ago

bkeenke commented 1 month ago

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; } } `