aboutsummaryrefslogtreecommitdiff
path: root/app/im/deploy/im.hcl
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-19 14:24:44 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-19 14:24:44 +0100
commit3c12cf646373cb66c3eb0a9b0dbb3f12534dd69a (patch)
tree2e6e931faef312bf6e6cdbef33f2944a8a5cde2d /app/im/deploy/im.hcl
parentb5ec581bc8404ff993910e4ba28df564b0e15c02 (diff)
downloadnixcfg-3c12cf646373cb66c3eb0a9b0dbb3f12534dd69a.tar.gz
nixcfg-3c12cf646373cb66c3eb0a9b0dbb3f12534dd69a.zip
im: directly call Garage on local node when possible
Diffstat (limited to 'app/im/deploy/im.hcl')
-rw-r--r--app/im/deploy/im.hcl7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/im/deploy/im.hcl b/app/im/deploy/im.hcl
index 0732943..af5304f 100644
--- a/app/im/deploy/im.hcl
+++ b/app/im/deploy/im.hcl
@@ -108,7 +108,7 @@ job "im" {
driver = "docker"
config {
- image = "lxpz/amd64_synapse:1.49.2-3"
+ image = "lxpz/amd64_synapse:1.49.2-4"
readonly_rootfs = true
command = "/usr/local/bin/matrix-s3-async-sqlite"
work_dir = "/ephemeral"
@@ -124,9 +124,14 @@ job "im" {
template {
data = <<EOH
+SYNAPSE_SQLITE_DB=/ephemeral/homeserver.db
+SYNAPSE_MEDIA_STORE=/ephemeral/media_store
+SYNAPSE_MEDIA_S3_BUCKET=synapse-data
AWS_ACCESS_KEY_ID={{ key "secrets/synapse/s3_access_key" | trimSpace }}
AWS_SECRET_ACCESS_KEY={{ key "secrets/synapse/s3_secret_key" | trimSpace }}
AWS_DEFAULT_REGION=garage-staging
+S3_ENDPOINT=http://{{ env "attr.unique.network.ip-address" }}:3990
+
EOH
destination = "secrets/env"
env = true