diff options
author | makefu <github@syntax-fehler.de> | 2021-03-12 20:09:10 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-03-12 20:09:20 +0100 |
commit | 27e182f7f878721c665b92b287e0d5f8da5bd06a (patch) | |
tree | 2fd1a29dc860327ca7cfacfe8523ad4825c876a3 /makefu/2configs/storj/forward-port.nix | |
parent | cf0cdbc33d6751bd5c8d48ec0433b7db299a292d (diff) |
ma: deploy storj on omo, forward via gum
Diffstat (limited to 'makefu/2configs/storj/forward-port.nix')
-rw-r--r-- | makefu/2configs/storj/forward-port.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/makefu/2configs/storj/forward-port.nix b/makefu/2configs/storj/forward-port.nix new file mode 100644 index 000000000..213f77470 --- /dev/null +++ b/makefu/2configs/storj/forward-port.nix @@ -0,0 +1,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; + } + } + ''; +} |