Skip to content

Commit

Permalink
ATOR-173 - Add mount for cached consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Mar 6, 2024
1 parent 3a914b7 commit 37ecd22
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker/scanner/.sbws.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ foo = on

[destinations.foo]
# the domain and path to the 1GB file or POST URL.
url = http://5.78.90.106:9077/1GiB
url = http://5.161.108.187:9177/1GiB
# Whether to verify or not the TLS certificate. Default True
verify = False
# ISO 3166-1 alpha-2 country code where the Web server destination is located.
Expand All @@ -28,5 +28,6 @@ verify = False
country = ZZ

[tor]
datadir = docker/data
external_control_ip = 172.18.0.2
external_control_port = 9051
15 changes: 13 additions & 2 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ job "sbws-dev" {
task "sbws-relay-dev-task" {
driver = "docker"

env {
ANON_USER = "root"
}

volume_mount {
volume = "sbws-dev"
destination = "/var/lib/anon"
read_only = false
}

config {
image = "svforte/anon-dev"
force_pull = true
Expand All @@ -60,11 +70,11 @@ job "sbws-dev" {
template {
change_mode = "noop"
data = <<EOH
User anond
User root
Nickname AnonSBWS
DataDirectory /var/lib/anon
DataDirectory /var/lib/anon/anon-data
ControlPort {{ env `NOMAD_PORT_control_port` }}
Expand Down Expand Up @@ -140,6 +150,7 @@ verify = False
country = ZZ
[tor]
datadir = /root/.sbws/anon-data
external_control_ip = {{ env `NOMAD_IP_control_port` }}
external_control_port = {{ env `NOMAD_PORT_control_port` }}
EOH
Expand Down
15 changes: 13 additions & 2 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ job "sbws-stage" {
task "sbws-relay-stage-task" {
driver = "docker"

env {
ANON_USER = "root"
}

volume_mount {
volume = "sbws-stage"
destination = "/var/lib/anon"
read_only = false
}

config {
image = "svforte/anon-stage"
force_pull = true
Expand All @@ -60,11 +70,11 @@ job "sbws-stage" {
template {
change_mode = "noop"
data = <<EOH
User anond
User root
Nickname AnonSBWS
DataDirectory /var/lib/anon
DataDirectory /var/lib/anon/anon-data
ControlPort {{ env `NOMAD_PORT_control_port` }}
Expand Down Expand Up @@ -140,6 +150,7 @@ verify = False
country = ZZ
[tor]
datadir = /root/.sbws/anon-data
external_control_ip = {{ env `NOMAD_IP_control_port` }}
external_control_port = {{ env `NOMAD_PORT_control_port` }}
EOH
Expand Down

0 comments on commit 37ecd22

Please sign in to comment.