aboutsummaryrefslogtreecommitdiff
path: root/app/im/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'app/im/deploy')
-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