yep, more dotfiles
at main 599 B view raw
1{ config 2, ... 3}: 4 5let 6 thelounge-port = 3005; 7 thelounge-hostname = "irc-lounge.net.wiro.world"; 8in 9{ 10 config = { 11 services.thelounge = { 12 enable = true; 13 port = thelounge-port; 14 public = false; 15 16 extraConfig = { 17 host = "127.0.0.1"; 18 reverseProxy = true; 19 20 # TODO: use ldap, find a way to hide password 21 }; 22 }; 23 24 services.caddy = { 25 virtualHosts."http://${thelounge-hostname}".extraConfig = '' 26 bind tailscale/irc-lounge 27 reverse_proxy http://localhost:${toString config.services.thelounge.port} 28 ''; 29 }; 30 }; 31}