aboutsummaryrefslogtreecommitdiff
path: root/app/im/deploy/im.hcl
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-30 17:04:04 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-30 17:04:04 +0100
commit004881e5ffbb63d633b2b7eb0409983f9253254c (patch)
tree0e6df120d27c48d0cfbd4bcd5e67a3f87faf940b /app/im/deploy/im.hcl
parent8d48f3bf7ff858a75ba3b2c3ef25195b445c8942 (diff)
downloadnixcfg-004881e5ffbb63d633b2b7eb0409983f9253254c.tar.gz
nixcfg-004881e5ffbb63d633b2b7eb0409983f9253254c.zip
fix tabs
Diffstat (limited to 'app/im/deploy/im.hcl')
-rw-r--r--app/im/deploy/im.hcl68
1 files changed, 31 insertions, 37 deletions
diff --git a/app/im/deploy/im.hcl b/app/im/deploy/im.hcl
index 6378e82..f782338 100644
--- a/app/im/deploy/im.hcl
+++ b/app/im/deploy/im.hcl
@@ -5,21 +5,15 @@ job "im" {
group "synapse" {
count = 1
- constraint {
- attribute = "${attr.unique.hostname}"
- operator = "="
- value = "cariacou"
- }
-
network {
port "http" {
to = 8008
}
}
- ephemeral_disk {
- size = 1000
- }
+ ephemeral_disk {
+ size = 1000
+ }
task "restore-db" {
lifecycle {
@@ -31,12 +25,12 @@ job "im" {
config {
image = "litestream/litestream:0.3.7"
args = [
- "restore", "-config", "/etc/litestream.yml", "/ephemeral/homeserver.db"
+ "restore", "-config", "/etc/litestream.yml", "/ephemeral/homeserver.db"
]
- volumes = [
+ volumes = [
"../alloc/data:/ephemeral",
- "secrets/litestream.yml:/etc/litestream.yml"
- ]
+ "secrets/litestream.yml:/etc/litestream.yml"
+ ]
}
template {
@@ -56,7 +50,7 @@ job "im" {
image = "matrixdotorg/synapse:v1.48.0"
ports = [ "http" ]
- entrypoint = [ "/usr/local/bin/python" ]
+ entrypoint = [ "/usr/local/bin/python" ]
args = [
"-m", "synapse.app.homeserver",
"-n",
@@ -90,25 +84,25 @@ job "im" {
cpu = 1000
}
- restart {
- attempts = 3
- delay = "30s"
- }
-
- service {
- port = "http"
- tags = [
- "tricot matrix.home.adnab.me 100",
- "tricot matrix.home.adnab.me:443 100",
- "tricot-add-header Access-Control-Allow-Origin *",
- ]
- check {
- type = "http"
- path = "/"
- interval = "10s"
- timeout = "2s"
- }
- }
+ restart {
+ attempts = 3
+ delay = "30s"
+ }
+
+ service {
+ port = "http"
+ tags = [
+ "tricot matrix.home.adnab.me 100",
+ "tricot matrix.home.adnab.me:443 100",
+ "tricot-add-header Access-Control-Allow-Origin *",
+ ]
+ check {
+ type = "http"
+ path = "/"
+ interval = "10s"
+ timeout = "2s"
+ }
+ }
}
task "replicate-db" {
@@ -116,12 +110,12 @@ job "im" {
config {
image = "litestream/litestream:0.3.7"
args = [
- "replicate", "-config", "/etc/litestream.yml"
+ "replicate", "-config", "/etc/litestream.yml"
]
- volumes = [
+ volumes = [
"../alloc/data:/ephemeral",
- "secrets/litestream.yml:/etc/litestream.yml"
- ]
+ "secrets/litestream.yml:/etc/litestream.yml"
+ ]
}
template {