forked from hswaw/hscloud
app/matrix: adjust media repo config to one deployed in production
Change-Id: Iac32918a1051a676377e5c3cc3c4592959a48e19 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1502 Reviewed-by: q3k <q3k@hackerspace.pl>
This commit is contained in:
parent
ffdb97b7dd
commit
ad3cb5c2e0
2 changed files with 3 additions and 1 deletions
|
@ -190,6 +190,7 @@ local coturn = import "./coturn.libsonnet";
|
|||
password: error "mediaRepo.db.password needs to be set",
|
||||
database: "mediarepo",
|
||||
host: "waw3-postgres",
|
||||
port: 5432,
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
|||
password: error "cfg.db.password needs to be set",
|
||||
database: error "cfg.db.database needs to be set",
|
||||
host: error "cfg.db.host needs to be set",
|
||||
port: error "cfg.db.port needs to be set",
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -34,7 +35,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
|||
useForwardedHost: false,
|
||||
},
|
||||
database: {
|
||||
postgres: "postgres://%s:%s@%s/%s?sslmode=disable" % [cfg.db.username, cfg.db.password, cfg.db.host, cfg.db.database],
|
||||
postgres: "postgres://%s:%s@%s:%d/%s?sslmode=disable" % [cfg.db.username, cfg.db.password, cfg.db.host, cfg.db.port, cfg.db.database],
|
||||
},
|
||||
homeservers: cfg.homeservers,
|
||||
admins: cfg.admins,
|
||||
|
|
Loading…
Reference in a new issue