aboutsummarylogtreecommitdiffstats
path: root/config-paths.patch
blob: 86bf28a4d62c7fd103568bc17449fdaa403d7644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/config.sample.json b/config.sample.json
index 57cb3ce..a4c47d3 100644
--- a/config.sample.json
+++ b/config.sample.json
@@ -1,9 +1,9 @@
 {
-  "registrationPath": "hangouts-registration.yaml",
+  "registrationPath": "/etc/synapse/matrix-puppet-hangouts/registration-FOO.yaml",
   "port": 8090,
   "bridge": {
-    "homeserverUrl": "https://your-home-server.example.org",
+    "homeserverUrl": "http://localhost",
     "domain": "example.org",
-    "registration": "hangouts-registration.yaml"
+    "registration": "/etc/synapse/matrix-puppet-hangouts/registration-FOO.yaml"
   }
 }
diff --git a/index.js b/index.js
index 141065e..d7b1818 100644
--- a/index.js
+++ b/index.js
@@ -5,10 +5,11 @@ const {
   Puppet,
   MatrixPuppetBridgeBase
 } = require("matrix-puppet-bridge");
+const home = require('os').homedir()
 const HangoutsClient = require('./client');
-const config = require('./config.json');
+const config = require(home + '/config.json');
 const path = require('path');
-const puppet = new Puppet(path.join(__dirname, './config.json' ));
+const puppet = new Puppet(path.join(home, './config.json' ));
 const debug = require('debug');
 const debugVerbose = debug('verbose:matrix-puppet:hangouts:index');