ansible-edda/playbooks/roles/services/deploy/lrproxy/files/config/stream.conf

23 lines
384 B
Plaintext

stream {
map $ssl_preread_server_name $name {
wojciechkozlowski.eu rproxy;
www.wojciechkozlowski.eu rproxy;
default lrproxy;
}
upstream rproxy {
server pod-rproxy:443;
}
upstream lrproxy {
server 127.0.0.1:443;
}
server {
listen pod-lrproxy:443;
proxy_pass $name;
ssl_preread on;
}
}