aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-28 20:07:47 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-28 20:07:47 +0100
commit2444302510e2e26a71802d134c9440511900e06a (patch)
tree36d6e4ecdf080f4020996d7c7308cab24c27858b /main.go
parent80a8759eb46d538351b6e345bd2eabd6ee03a35b (diff)
downloadeasybridge-2444302510e2e26a71802d134c9440511900e06a.tar.gz
easybridge-2444302510e2e26a71802d134c9440511900e06a.zip
Put Easybridge avatar in Docker container
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index e6c3f82..d25a3d6 100644
--- a/main.go
+++ b/main.go
@@ -25,6 +25,7 @@ type ConfigFile struct {
DbPath string `json:"db_path"`
MatrixDomain string `json:"matrix_domain"`
SessionKey string `json:"web_session_key"`
+ AvatarFile string `json:"easybridge_avatar"`
}
var configFlag = flag.String("config", "./config.json", "Configuration file path")
@@ -44,6 +45,7 @@ func readConfig() ConfigFile {
Server: "http://localhost:8008",
DbType: "sqlite3",
DbPath: "easybridge.db",
+ AvatarFile: "./easybridge.jpg",
SessionKey: hex.EncodeToString(defaultKey),
}
@@ -166,7 +168,11 @@ func main() {
// Start appservice and web management interface
errch := make(chan error)
- StartAppService(errch)
+ err = StartAppService(errch)
+ if err != nil {
+ log.Fatal(err)
+ }
+
StartWeb(errch)
// Wait for an error somewhere