hosts/remilia: remove most subdomains :(
Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
		@@ -17,6 +17,7 @@
 | 
			
		||||
    extraGroups = [ "wheel" ];
 | 
			
		||||
    openssh.authorizedKeys.keys = lib'.network.commonSSHKeys;
 | 
			
		||||
  };
 | 
			
		||||
  programs.zsh.enable = true;
 | 
			
		||||
 | 
			
		||||
  system.stateVersion = "21.11";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
      {
 | 
			
		||||
        interfaces = {
 | 
			
		||||
          ens3 = {
 | 
			
		||||
            allowedTCPPorts = [ 80 81 443 444 993 465 143 25 22001 22002 9898 8999 99 5201 4444 ]
 | 
			
		||||
            allowedTCPPorts = [ 80 81 443 444 993 465 143 25 22 22001 22002 4444 ]
 | 
			
		||||
              ++ (map (x: x.sourcePort) config.networking.nat.forwardPorts);
 | 
			
		||||
            allowedUDPPorts = [ 17840 ];
 | 
			
		||||
          };
 | 
			
		||||
@@ -32,10 +32,6 @@
 | 
			
		||||
      externalInterface = "ens3";
 | 
			
		||||
      internalInterfaces = [ "wg0" ];
 | 
			
		||||
      forwardPorts = [
 | 
			
		||||
        {
 | 
			
		||||
          destination = "${marisa}:2002";
 | 
			
		||||
          sourcePort = 22;
 | 
			
		||||
        }
 | 
			
		||||
        {
 | 
			
		||||
          destination = "${satori}:6600";
 | 
			
		||||
          sourcePort = 6600;
 | 
			
		||||
 
 | 
			
		||||
@@ -53,34 +53,34 @@ in
 | 
			
		||||
            serverAliases = [ "www.${domain}" ];
 | 
			
		||||
          };
 | 
			
		||||
          "znc.weirdnatto.in" = genericHttpRProxy { addr = "https://${marisa}:9898"; };
 | 
			
		||||
          "vault.${domain}" = genericHttpRProxy { addr = "https://${marisa}:8800"; };
 | 
			
		||||
          "consul.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8500"; };
 | 
			
		||||
          # "vault.${domain}" = genericHttpRProxy { addr = "https://${marisa}:8800"; };
 | 
			
		||||
          # "consul.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8500"; };
 | 
			
		||||
          "f.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8888"; };
 | 
			
		||||
          #         "radio.${domain}" = genericHttpRProxy { addr = "http://${satori}:8001"; };
 | 
			
		||||
          "radio.${domain}" = {
 | 
			
		||||
          "radio.${domain}" = genericHttpRProxy { addr = "http://${satori}:8001"; };
 | 
			
		||||
          /* "radio.${domain}" = {
 | 
			
		||||
            addSSL = true;
 | 
			
		||||
            enableACME = true;
 | 
			
		||||
            locations."/" = {
 | 
			
		||||
              proxyPass = "http://${satori}:7590";
 | 
			
		||||
              extraConfig = ''
 | 
			
		||||
                expires $expires;
 | 
			
		||||
                proxy_set_header Host $host;
 | 
			
		||||
              '';
 | 
			
		||||
            proxyPass = "http://${satori}:7590";
 | 
			
		||||
            extraConfig = ''
 | 
			
		||||
            expires $expires;
 | 
			
		||||
            proxy_set_header Host $host;
 | 
			
		||||
            '';
 | 
			
		||||
            };
 | 
			
		||||
            locations."= /".return = "301 /radio";
 | 
			
		||||
          };
 | 
			
		||||
            };*/
 | 
			
		||||
 | 
			
		||||
          "git.${domain}" = genericHttpRProxy {
 | 
			
		||||
            addr = "http://${marisa}:5000";
 | 
			
		||||
          /*  "git.${domain}" = genericHttpRProxy {
 | 
			
		||||
            addr = "http://${marisa}:5001";
 | 
			
		||||
            conf = "client_max_body_size 64M;";
 | 
			
		||||
          };
 | 
			
		||||
          "nomad.${domain}" = genericHttpRProxy {
 | 
			
		||||
            };
 | 
			
		||||
            "nomad.${domain}" = genericHttpRProxy {
 | 
			
		||||
            addr = "http://${marisa}:4646";
 | 
			
		||||
            conf = ''
 | 
			
		||||
              proxy_buffering off;
 | 
			
		||||
              proxy_read_timeout 310s;
 | 
			
		||||
            proxy_buffering off;
 | 
			
		||||
            proxy_read_timeout 310s;
 | 
			
		||||
            '';
 | 
			
		||||
          };
 | 
			
		||||
            };*/
 | 
			
		||||
        };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user