hosts/remilia: random nginx changes

Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
2023-04-27 15:01:33 +05:30
parent 0e4ac5dfe5
commit be59cc0e8a
3 changed files with 21 additions and 13 deletions

View File

@@ -17,8 +17,8 @@
let
t = lib.splitString ":" x.destination;
in
with builtins;
"iptables -t nat -A POSTROUTING -d ${head t} -p tcp -m tcp --dport ${head (tail t)} -j MASQUERADE"
with lib;
"iptables -t nat -A POSTROUTING -d ${head t} -p tcp -m tcp --dport ${last t} -j MASQUERADE"
)
config.networking.nat.forwardPorts;
};