dev.fron.io nixrc / d9bd949
home(transmission): forward dht Tony Olagbaiye a month ago
1 changed file(s) with 32 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
637637 rule = "HostSNI(`*`)";
638638 service = "klaus";
639639 };
640 transmission-dht-tcp = {
641 entryPoints = [ "transmission-dht-tcp" ];
642 rule = "HostSNI(`*`)";
643 service = "transmission-dht";
644 };
640645 #irc = {
641646 # entryPoints = [ "ircs" ];
642647 # rule = "HostSNI(`*`)";
674679 irc.loadBalancer = {
675680 servers = [
676681 { address = "${hosts.wireguard.ipv4.delta}:6697"; }
682 ];
683 terminationDelay = 100;
684 };
685 transmission-dht.loadBalancer = {
686 servers = [
687 { address = "10.11.0.2:51413"; }
677688 ];
678689 terminationDelay = 100;
679690 };
688699 };
689700 };
690701
691 #udp = {
692 # routers = {
693 # UDPRouter0 = {
694 # entryPoints = [ "foobar" "foobar" ];
695 # service = "foobar";
696 # };
697 # UDPRouter1 = {
698 # entryPoints = [ "foobar" "foobar" ];
699 # service = "foobar";
700 # };
701 # };
702 # services = {
703 # UDPService01 = {
704 # loadBalancer = {
705 # servers = [ { address = "foobar"; } { address = "foobar"; } ];
706 # };
707 # };
708 # UDPService02 = {
709 # weighted = {
710 # services = [
711 # {
712 # name = "foobar";
713 # weight = 42;
714 # }
715 # {
716 # name = "foobar";
717 # weight = 42;
718 # }
719 # ];
720 # };
721 # };
722 # };
723 #};
702 udp = {
703 routers = {
704 transmission-dht = {
705 entryPoints = [ "transmission-dht-udp" ];
706 service = "transmission-dht";
707 };
708 };
709 services = {
710 transmission-dht.loadBalancer = {
711 servers = [
712 { address = "10.11.0.2:51413"; }
713 ];
714 };
715 };
716 };
724717
725718 tls = with config.security.acme; {
726719 certificates = lib.mapAttrsToList (_: { directory, ... }: {
864857 anki = {
865858 address = ":27701/tcp";
866859 };
860 transmission-dht-tcp = {
861 address = ":51413/tcp";
862 };
863 transmission-dht-udp = {
864 address = ":51413/udp";
865 };
867866 };
868867
869868 providers = {