Post #2700690
2026-05-13 05:11 UTC
@Chloe@catwithaclari.net you can, but it's cursed. The keyword to search for is mod_stream. This may not be included in your nginx install and you may need to install it separately (i.e.: an nginx-mod-stream package) or replace your nginx with a version that includes more modules (i.e.: an nginx-full package)
Excerpt that I can't fully explain because I didn't research or write it but that dd this for a while for a pufferpanel and an immich:
stream {
map_hash_bucket_size 128;
map $ssl_preread_server_name $domain {
hostnames;
immich.example.com arbitraryUpstreamName;
pufferpanel1.example.com arbitraryUpstreamName;
default defaultServerName;
}
upstream arbitraryUpstreamName {
server upstream.example.com:443;
}
upstream defaultServerName {
localhost:3443 # you need to make the rest of your nginx tls services listen on this port!
}
}
Anyways my condolences for finding yourself in need of this
Replies (0)
No replies.