Files
ssl-nginx/nginx/examples/stream.conf
Aleksei Sokol 8946fa4244 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
2026-04-01 13:27:00 +03:00

28 lines
727 B
Plaintext

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