Skip to content

Commit

Permalink
Internal socks port, rebalance cpu / ram
Browse files Browse the repository at this point in the history
  • Loading branch information
kanshi committed Aug 6, 2024
1 parent 2076094 commit d35fb00
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,20 @@ job "sbws-stage" {

port "http-port" {
static = 9177
to = 80
# host_network = "wireguard"
}

port "orport" {
static = 19101
}

port "control-port" {
static = 19151
host_network = "wireguard"
}

port "orport" {
static = 19101
port "socks-port" {
static = 19141
host_network = "wireguard"
}
}

Expand All @@ -69,8 +72,8 @@ job "sbws-stage" {
}

resources {
cpu = 256
memory = 2500
cpu = 4096
memory = 2560
}

template {
Expand All @@ -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
Expand Down Expand Up @@ -135,8 +139,8 @@ ORPort {{ env `NOMAD_PORT_orport` }}
}

resources {
cpu = 1000
memory = 2500
cpu = 1024
memory = 2560
}

template {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d35fb00

Please sign in to comment.