stockholm/makefu/2configs/storj/forward-port.nix
2021-03-12 20:09:20 +01:00

23 lines
406 B
Nix

{
networking.firewall.allowedTCPPorts = [ 28967 ];
#networking.nat.forwardPorts = [
# { # storj
# destination = "10.243.0.89:28967";
# proto = "tcp";
# sourcePort = 28967;
# }
#];
services.nginx.appendConfig = ''
stream {
upstream storj {
server omo.r:28967;
}
server {
listen 28967;
proxy_pass storj;
}
}
'';
}