summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/storj/forward-port.nix
blob: 213f77470657c7e2b7f2de9fae2d2d4980724577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  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;
      }
  }
    '';
}