[GH-ISSUE #4070] socket and stream support #2650

Open
opened 2026-02-26 07:36:20 +03:00 by kerem · 3 comments
Owner

Originally created by @bkeenke on GitHub (Oct 15, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4070

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

Originally created by @bkeenke on GitHub (Oct 15, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4070 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; } } `
Author
Owner

@emircanerkul commented on GitHub (Apr 9, 2025):

+1

<!-- gh-comment-id:2790092399 --> @emircanerkul commented on GitHub (Apr 9, 2025): +1
Author
Owner

@TheNkl commented on GitHub (May 18, 2025):

+1

<!-- gh-comment-id:2888956213 --> @TheNkl commented on GitHub (May 18, 2025): +1
Author
Owner

@truejcrive commented on GitHub (Nov 5, 2025):

+1

<!-- gh-comment-id:3494046190 --> @truejcrive commented on GitHub (Nov 5, 2025): +1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2650
No description provided.