From d35fb000c7613aa482e2348d75a4f2399c2fc9b5 Mon Sep 17 00:00:00 2001 From: kanshi <46557+kanshi@users.noreply.github.com> Date: Tue, 6 Aug 2024 18:57:11 +0200 Subject: [PATCH] Internal socks port, rebalance cpu / ram --- operations/deploy-stage.hcl | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/operations/deploy-stage.hcl b/operations/deploy-stage.hcl index 474a613..b54cee6 100644 --- a/operations/deploy-stage.hcl +++ b/operations/deploy-stage.hcl @@ -37,8 +37,10 @@ job "sbws-stage" { port "http-port" { static = 9177 - to = 80 - # host_network = "wireguard" + } + + port "orport" { + static = 19101 } port "control-port" { @@ -46,8 +48,9 @@ job "sbws-stage" { host_network = "wireguard" } - port "orport" { - static = 19101 + port "socks-port" { + static = 19141 + host_network = "wireguard" } } @@ -69,8 +72,8 @@ job "sbws-stage" { } resources { - cpu = 256 - memory = 2500 + cpu = 4096 + memory = 2560 } template { @@ -83,7 +86,8 @@ Nickname AnonSBWS DataDirectory /var/lib/anon/anon-data ControlPort {{ env `NOMAD_PORT_control_port` }} -CookieAuthentication 1 + +SOCKSPort {{ env `NOMAD_IP_socks_port` }}:{{ env `NOMAD_PORT_socks_port` }} SocksPort auto SafeLogging 1 @@ -135,8 +139,8 @@ ORPort {{ env `NOMAD_PORT_orport` }} } resources { - cpu = 1000 - memory = 2500 + cpu = 1024 + memory = 2560 } template { @@ -223,7 +227,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }} root /data; autoindex on; - listen 0.0.0.0:80; + listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }}; location / { try_files $uri $uri/ =404;