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