char/topaz-flake

git clone https://git.t4t.associates/char/topaz-flake

Charlotte Somrun soju and use nginx to SNI-discriminate between soju and t4t ircd0b247a

main
403 B20 linesraw
1{ ... }: {
2  services.nginx = {
3    enable = true;
4    streamConfig = ''
5      map $ssl_preread_server_name $irc_backend {
6        soju.char.lt 127.0.0.1:16698;
7        default      127.0.0.1:16697;
8      }
9
10      server {
11        listen 6697;
12        listen [::]:6697;
13        ssl_preread on;
14        proxy_pass $irc_backend;
15        proxy_protocol on;
16        proxy_timeout 1h;
17      }
18    '';
19  };
20}