aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config-init5
-rw-r--r--session.go2
2 files changed, 5 insertions, 2 deletions
diff --git a/config-init b/config-init
index eb71163..426e652 100644
--- a/config-init
+++ b/config-init
@@ -35,4 +35,7 @@ publicindex:false
## add your instance salt here for secure tripcodes
-instancesalt: \ No newline at end of file
+instancesalt:
+
+## connect to this redis server
+redis:redis://localhost
diff --git a/session.go b/session.go
index 45bf86c..bb6175d 100644
--- a/session.go
+++ b/session.go
@@ -12,7 +12,7 @@ import (
var cache redis.Conn
func InitCache() {
- conn, err := redis.DialURL("redis://localhost")
+ conn, err := redis.DialURL(GetConfigValue("redis"))
if err != nil {
panic(err)
}