Version 0.6.0 (2026-04-01)
Changes:
- add config validation option via Makefile
- add `default-http{,s}-port` commands to add_servers.py
- update add_servers.py to pass generic parameters to servers in templates
- add nginx_conf.d directory usage for more than one custom nginx configurations
- rename `port` and `ssl_port` to `http{,s}_port` for templates
- add `http{,s}_custom_params` to templates
This commit is contained in:
27
nginx/examples/stream.conf
Normal file
27
nginx/examples/stream.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
stream {
|
||||
log_format stream '$remote_addr [$time_local] host=$ssl_preread_server_name '
|
||||
'prot=$protocol status=$status out=$bytes_sent in=$bytes_received';
|
||||
|
||||
# access_log /var/log/nginx/stream_access.log stream;
|
||||
# error_log /var/log/nginx/stream_error.log;
|
||||
|
||||
map $ssl_preread_server_name $backend_name {
|
||||
your.special.domain proxy_protocol_backend;
|
||||
default nginx_https;
|
||||
}
|
||||
|
||||
upstream nginx_https {
|
||||
server 127.0.0.1:4443;
|
||||
}
|
||||
|
||||
upstream proxy_protocol_backend {
|
||||
server container_backend:443;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 reuseport;
|
||||
proxy_pass $backend_name;
|
||||
ssl_preread on;
|
||||
proxy_protocol on;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user