ansible-edda/playbooks/files/services/deploy/stream.conf

24 lines
436 B
Plaintext
Raw Normal View History

2023-07-09 22:02:51 +02:00
stream {
map $ssl_preread_server_name $name {
wojciechkozlowski.eu rproxy;
www.wojciechkozlowski.eu rproxy;
default lrproxy;
}
upstream rproxy {
2023-08-17 17:09:30 +02:00
server pod-rproxy:8443;
2023-07-09 22:02:51 +02:00
}
upstream lrproxy {
2023-08-17 17:09:30 +02:00
server pod-lrproxy:8443;
2023-07-09 22:02:51 +02:00
}
server {
2023-08-17 17:09:30 +02:00
listen {{ services_service_user_name }}:443;
proxy_protocol on;
2023-07-09 22:02:51 +02:00
proxy_pass $name;
ssl_preread on;
}
}