app/matrix: disable piwik & 3pid auth, allow guest login, fix roomDirectory
diff --git a/app/matrix/prod.jsonnet b/app/matrix/prod.jsonnet
index 81b69f0..08b3c60 100644
--- a/app/matrix/prod.jsonnet
+++ b/app/matrix/prod.jsonnet
@@ -18,7 +18,7 @@
     },
 
     metadata(component):: {
-        namespace: app.cfg.namespace,
+        namespace: cfg.namespace,
         labels: {
             "app.kubernetes.io/name": "matrix",
             "app.kubernetes.io/managed-by": "kubecfg",
@@ -26,7 +26,7 @@
         },
     },
 
-    namespace: kube.Namespace(app.cfg.namespace),
+    namespace: kube.Namespace(cfg.namespace),
 
     postgres: postgres {
         cfg+: {
@@ -66,9 +66,10 @@
                                 http: { containerPort: 8008 },
                             },
                             env_: {
-                                SYNAPSE_SERVER_NAME: app.cfg.serverName,
+                                SYNAPSE_SERVER_NAME: cfg.serverName,
                                 SYNAPSE_REPORT_STATS: "no",
                                 SYNAPSE_NO_TLS: "1",
+                                SYNAPSE_ALLOW_GUEST: "yes",
 
                                 POSTGRES_HOST: "postgres",
                                 POSTGRES_USER: app.postgres.cfg.username,
@@ -90,16 +91,16 @@
         metadata+: app.metadata("riot-web-config"),
         data: {
             "config.json": std.manifestJsonEx({
-                "default_hs_url": "https://matrix.hackerspace.pl",
-                "default_is_url": "https://vector.im",
+                "default_hs_url": "https://%s" % [cfg.domain],
                 "disable_custom_urls": false,
                 "disable_guests": false,
                 "disable_login_language_selector": false,
-                "disable_3pid_login": false,
+                "disable_3pid_login": true,
                 "brand": "Riot",
                 "integrations_ui_url": "https://scalar.vector.im/",
                 "integrations_rest_url": "https://scalar.vector.im/api",
                 "integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
+
                 "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
                 "features": {
                     "feature_groups": "labs",
@@ -110,16 +111,10 @@
                 "default_theme": "light",
                 "roomDirectory": {
                     "servers": [
-                        "matrix.hackerspace.pl"
+                        "hackerspace.pl"
                     ]
                 },
                 "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": {
                     "https://matrix.org": false
                 }