diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-08 18:05:17 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-08 18:05:17 +0100 |
commit | ea55c9b12b9540418586305204843a256a29fdf5 (patch) | |
tree | 6d77a674d002a2f24db7a20e65cc7168822c0d18 | |
parent | 3693d9f36bea5a6884737231aef3417a661df3dd (diff) | |
download | infrastructure-ea55c9b12b9540418586305204843a256a29fdf5.tar.gz infrastructure-ea55c9b12b9540418586305204843a256a29fdf5.zip |
synapse on dummy infrastructure for tricot test
-rw-r--r-- | app/dummy/deploy/dummy-synapse.hcl | 47 | ||||
-rw-r--r-- | app/frontend/deploy/frontend-tricot.hcl | 4 | ||||
-rw-r--r-- | app/garage-staging/deploy/garage.hcl | 1 |
3 files changed, 50 insertions, 2 deletions
diff --git a/app/dummy/deploy/dummy-synapse.hcl b/app/dummy/deploy/dummy-synapse.hcl new file mode 100644 index 0000000..9b69914 --- /dev/null +++ b/app/dummy/deploy/dummy-synapse.hcl @@ -0,0 +1,47 @@ +job "dummy-synapse" { + datacenters = ["neptune"] + type = "service" + + group "synapse" { + count = 1 + + constraint { + attribute = "${attr.unique.hostname}" + operator = "=" + value = "cariacou" + } + + network { + port "http" { + to = 8008 + } + } + + task "synapse" { + driver = "docker" + config { + image = "matrixdotorg/synapse:v1.48.0" + ports = [ "http" ] + volumes = [ + "/mnt/ssd/dummy-synapse:/data", + ] + } + } + + + service { + port = "http" + tags = [ + "tricot matrix.home.adnab.me 100", + "tricot matrix.home.adnab.me:8448 100", + "tricot-add-header Access-Control-Allow-Origin *", + ] + check { + type = "http" + path = "/" + interval = "10s" + timeout = "2s" + } + } + } +} diff --git a/app/frontend/deploy/frontend-tricot.hcl b/app/frontend/deploy/frontend-tricot.hcl index 6955bbb..59b13c5 100644 --- a/app/frontend/deploy/frontend-tricot.hcl +++ b/app/frontend/deploy/frontend-tricot.hcl @@ -25,7 +25,7 @@ job "frontend" { driver = "docker" config { - image = "lxpz/amd64_tricot:7" + image = "lxpz/amd64_tricot:9" network_mode = "host" readonly_rootfs = true ports = [ "http_port", "https_port", "admin_port" ] @@ -47,7 +47,7 @@ job "frontend" { data = <<EOH TRICOT_NODE_NAME={{ env "attr.unique.hostname" }} TRICOT_LETSENCRYPT_EMAIL=alex@adnab.me -RUST_LOG=tricot=trace +RUST_LOG=tricot=debug EOH destination = "secrets/env" env = true diff --git a/app/garage-staging/deploy/garage.hcl b/app/garage-staging/deploy/garage.hcl index 2a526c9..21faffb 100644 --- a/app/garage-staging/deploy/garage.hcl +++ b/app/garage-staging/deploy/garage.hcl @@ -98,6 +98,7 @@ job "garage-staging" { tags = [ "garage-staging-web", "tricot *.garage-staging-web.home.adnab.me", + "tricot matrix.home.adnab.me/.well-known/matrix/server", "tricot rust-docs", "tricot-add-header Access-Control-Allow-Origin *", ] |