hosts/remilia: remove most subdomains :(

Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
2023-07-26 18:03:20 +05:30
parent 78f440f69c
commit 4682d7814b
3 changed files with 19 additions and 22 deletions

View File

@@ -17,6 +17,7 @@
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = lib'.network.commonSSHKeys; openssh.authorizedKeys.keys = lib'.network.commonSSHKeys;
}; };
programs.zsh.enable = true;
system.stateVersion = "21.11"; system.stateVersion = "21.11";
} }

View File

@@ -7,7 +7,7 @@
{ {
interfaces = { interfaces = {
ens3 = { 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); ++ (map (x: x.sourcePort) config.networking.nat.forwardPorts);
allowedUDPPorts = [ 17840 ]; allowedUDPPorts = [ 17840 ];
}; };
@@ -32,10 +32,6 @@
externalInterface = "ens3"; externalInterface = "ens3";
internalInterfaces = [ "wg0" ]; internalInterfaces = [ "wg0" ];
forwardPorts = [ forwardPorts = [
{
destination = "${marisa}:2002";
sourcePort = 22;
}
{ {
destination = "${satori}:6600"; destination = "${satori}:6600";
sourcePort = 6600; sourcePort = 6600;

View File

@@ -53,34 +53,34 @@ in
serverAliases = [ "www.${domain}" ]; serverAliases = [ "www.${domain}" ];
}; };
"znc.weirdnatto.in" = genericHttpRProxy { addr = "https://${marisa}:9898"; }; "znc.weirdnatto.in" = genericHttpRProxy { addr = "https://${marisa}:9898"; };
"vault.${domain}" = genericHttpRProxy { addr = "https://${marisa}:8800"; }; # "vault.${domain}" = genericHttpRProxy { addr = "https://${marisa}:8800"; };
"consul.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8500"; }; # "consul.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8500"; };
"f.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8888"; }; "f.${domain}" = genericHttpRProxy { addr = "http://${marisa}:8888"; };
# "radio.${domain}" = genericHttpRProxy { addr = "http://${satori}:8001"; }; "radio.${domain}" = genericHttpRProxy { addr = "http://${satori}:8001"; };
"radio.${domain}" = { /* "radio.${domain}" = {
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${satori}:7590"; proxyPass = "http://${satori}:7590";
extraConfig = '' extraConfig = ''
expires $expires; expires $expires;
proxy_set_header Host $host; proxy_set_header Host $host;
''; '';
}; };
locations."= /".return = "301 /radio"; locations."= /".return = "301 /radio";
}; };*/
"git.${domain}" = genericHttpRProxy { /* "git.${domain}" = genericHttpRProxy {
addr = "http://${marisa}:5000"; addr = "http://${marisa}:5001";
conf = "client_max_body_size 64M;"; conf = "client_max_body_size 64M;";
}; };
"nomad.${domain}" = genericHttpRProxy { "nomad.${domain}" = genericHttpRProxy {
addr = "http://${marisa}:4646"; addr = "http://${marisa}:4646";
conf = '' conf = ''
proxy_buffering off; proxy_buffering off;
proxy_read_timeout 310s; proxy_read_timeout 310s;
''; '';
}; };*/
}; };
}; };
}; };