forked from hswaw/hscloud
app/matrix: disable piwik & 3pid auth, allow guest login, fix roomDirectory
parent
a222691ca5
commit
4b4231d900
|
@ -18,7 +18,7 @@ local postgres = import "../../kube/postgres.libsonnet";
|
||||||
},
|
},
|
||||||
|
|
||||||
metadata(component):: {
|
metadata(component):: {
|
||||||
namespace: app.cfg.namespace,
|
namespace: cfg.namespace,
|
||||||
labels: {
|
labels: {
|
||||||
"app.kubernetes.io/name": "matrix",
|
"app.kubernetes.io/name": "matrix",
|
||||||
"app.kubernetes.io/managed-by": "kubecfg",
|
"app.kubernetes.io/managed-by": "kubecfg",
|
||||||
|
@ -26,7 +26,7 @@ local postgres = import "../../kube/postgres.libsonnet";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
namespace: kube.Namespace(app.cfg.namespace),
|
namespace: kube.Namespace(cfg.namespace),
|
||||||
|
|
||||||
postgres: postgres {
|
postgres: postgres {
|
||||||
cfg+: {
|
cfg+: {
|
||||||
|
@ -66,9 +66,10 @@ local postgres = import "../../kube/postgres.libsonnet";
|
||||||
http: { containerPort: 8008 },
|
http: { containerPort: 8008 },
|
||||||
},
|
},
|
||||||
env_: {
|
env_: {
|
||||||
SYNAPSE_SERVER_NAME: app.cfg.serverName,
|
SYNAPSE_SERVER_NAME: cfg.serverName,
|
||||||
SYNAPSE_REPORT_STATS: "no",
|
SYNAPSE_REPORT_STATS: "no",
|
||||||
SYNAPSE_NO_TLS: "1",
|
SYNAPSE_NO_TLS: "1",
|
||||||
|
SYNAPSE_ALLOW_GUEST: "yes",
|
||||||
|
|
||||||
POSTGRES_HOST: "postgres",
|
POSTGRES_HOST: "postgres",
|
||||||
POSTGRES_USER: app.postgres.cfg.username,
|
POSTGRES_USER: app.postgres.cfg.username,
|
||||||
|
@ -90,16 +91,16 @@ local postgres = import "../../kube/postgres.libsonnet";
|
||||||
metadata+: app.metadata("riot-web-config"),
|
metadata+: app.metadata("riot-web-config"),
|
||||||
data: {
|
data: {
|
||||||
"config.json": std.manifestJsonEx({
|
"config.json": std.manifestJsonEx({
|
||||||
"default_hs_url": "https://matrix.hackerspace.pl",
|
"default_hs_url": "https://%s" % [cfg.domain],
|
||||||
"default_is_url": "https://vector.im",
|
|
||||||
"disable_custom_urls": false,
|
"disable_custom_urls": false,
|
||||||
"disable_guests": false,
|
"disable_guests": false,
|
||||||
"disable_login_language_selector": false,
|
"disable_login_language_selector": false,
|
||||||
"disable_3pid_login": false,
|
"disable_3pid_login": true,
|
||||||
"brand": "Riot",
|
"brand": "Riot",
|
||||||
"integrations_ui_url": "https://scalar.vector.im/",
|
"integrations_ui_url": "https://scalar.vector.im/",
|
||||||
"integrations_rest_url": "https://scalar.vector.im/api",
|
"integrations_rest_url": "https://scalar.vector.im/api",
|
||||||
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
|
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
|
||||||
|
|
||||||
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
||||||
"features": {
|
"features": {
|
||||||
"feature_groups": "labs",
|
"feature_groups": "labs",
|
||||||
|
@ -110,16 +111,10 @@ local postgres = import "../../kube/postgres.libsonnet";
|
||||||
"default_theme": "light",
|
"default_theme": "light",
|
||||||
"roomDirectory": {
|
"roomDirectory": {
|
||||||
"servers": [
|
"servers": [
|
||||||
"matrix.hackerspace.pl"
|
"hackerspace.pl"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"welcomeUserId": "@riot-bot:matrix.org",
|
"welcomeUserId": "@riot-bot:matrix.org",
|
||||||
"piwik": {
|
|
||||||
"url": "https://piwik.riot.im/",
|
|
||||||
"whitelistedHSUrls": ["https://matrix.org"],
|
|
||||||
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
|
|
||||||
"siteId": 1
|
|
||||||
},
|
|
||||||
"enable_presence_by_hs_url": {
|
"enable_presence_by_hs_url": {
|
||||||
"https://matrix.org": false
|
"https://matrix.org": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue