How to convert the stream_ssl_preread_module in nginx to caddyfile

Is able to convert the stream_ssl_preread_module in nginx to caddyfile?
The typical conf in nginx is below which is pasted from Module ngx_stream_ssl_preread_module

map $ssl_preread_server_name $name {
backend.example.com backend;
default backend2;
}

upstream backend {
server 192.168.0.1:12345;
server 192.168.0.2:12345;
}

upstream backend2 {
server 192.168.0.3:12345;
server 192.168.0.4:12345;
}

server {
listen 12346;
proxy_pass $name;
ssl_preread on;
}

Any suggestions? Thanks.

1 Like

This is not yet available in Caddy, and isn’t currently on my list before the v2 release, but I can prioritize this work if it is able to be funded.

I already have all the pieces needed to make this work, except for the time/funding to do it. Let me know if you’re interested in funding this!

Thanks for the reply. I think my website will work on nginx. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.