forked from hswaw/hscloud
app/matrix: upgrade and migrate to official appservice-irc image
Change-Id: I9104974bd0906739f08239146737c56efde36cfemaster
parent
aca7e28f69
commit
57349d2a76
|
@ -381,11 +381,6 @@ ircService:
|
|||
- "1d"
|
||||
- "1w"
|
||||
|
||||
# The nedb database URI to connect to. This is the name of the directory to
|
||||
# dump .db files to. This is relative to the project directory.
|
||||
# Required.
|
||||
databaseUri: "nedb://data"
|
||||
|
||||
# Configuration options for the debug HTTP API. To access this API, you must
|
||||
# append ?access_token=$APPSERVICE_TOKEN (from the registration file) to the requests.
|
||||
#
|
||||
|
@ -443,3 +438,7 @@ advanced:
|
|||
# accidentally overloading the homeserver. Defaults to 1000, which should be
|
||||
# enough for the vast majority of use cases.
|
||||
maxHttpSockets: 1000
|
||||
|
||||
database:
|
||||
engine: "nedb"
|
||||
connectionString: "nedb:///data"
|
||||
|
|
|
@ -278,7 +278,7 @@ local postgres = import "../../kube/postgres.libsonnet";
|
|||
local bridge = self,
|
||||
local cfg = bridge.cfg,
|
||||
cfg:: {
|
||||
image: "registry.k0.hswaw.net/informatic/matrix-appservice-irc:0.12.0",
|
||||
image: "matrixdotorg/matrix-appservice-irc:release-0.16.0",
|
||||
metadata: {},
|
||||
config: std.native("parseYaml")(importstr "appservice-irc.yaml")[0],
|
||||
storageClassName: app.cfg.storageClassName,
|
||||
|
@ -319,7 +319,7 @@ local postgres = import "../../kube/postgres.libsonnet";
|
|||
containers_: {
|
||||
bootstrap: kube.Container("appservice-irc-%s-bootstrap" % [name]) {
|
||||
image: cfg.image,
|
||||
command: ["sh", "-c", "matrix-appservice-irc -r -u http://appservice-irc-%s:9999 -c /config/config.yaml -f /tmp/registration.yaml && cat /tmp/registration.yaml" % [name]],
|
||||
command: ["sh", "-c", "node app.js -r -u http://appservice-irc-%s:9999 -c /config/config.yaml -f /tmp/registration.yaml && cat /tmp/registration.yaml" % [name]],
|
||||
volumeMounts_: {
|
||||
config: { mountPath: "/config" },
|
||||
},
|
||||
|
@ -345,7 +345,7 @@ local postgres = import "../../kube/postgres.libsonnet";
|
|||
containers_: {
|
||||
appserviceIrc: kube.Container("appservice-irc-%s" % [name]) {
|
||||
image: cfg.image,
|
||||
command: ["matrix-appservice-irc", "-c", "/config/config.yaml", "-f", "/registration/registration.yaml", "-p", "9999"],
|
||||
command: ["node", "app.js", "-c", "/config/config.yaml", "-f", "/registration/registration.yaml", "-p", "9999"],
|
||||
ports_: {
|
||||
http: { containerPort: 9999 },
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue