summaryrefslogtreecommitdiffstats
path: root/conf/app.ini
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-22 20:49:53 +0800
committerslene <vslene@gmail.com>2014-03-22 20:49:53 +0800
commitf9c07c4186b61a1548d9a908fe6228bd130f4f92 (patch)
tree7d10adada909ac74263f36a8276f2ece9988effb /conf/app.ini
parent0d1872ebe3f11c14f31f454ed8d719a22c0884d0 (diff)
downloadgitea-f9c07c4186b61a1548d9a908fe6228bd130f4f92.tar.gz
gitea-f9c07c4186b61a1548d9a908fe6228bd130f4f92.zip
update session
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini27
1 files changed, 27 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index cf99c9da09..cf2ae31d83 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -72,6 +72,33 @@ INTERVAL = 60
; memcache: "127.0.0.1:11211"
HOST =
+[session]
+; Either "memory", "file", "redis" or "mysql", default is "memory"
+PROVIDER = file
+; provider config
+; memory: not have any config yet
+; file: session file path
+; e.g. tmp/sessions
+; redis: config like redis server addr,poolSize,password
+; e.g. 127.0.0.1:6379,100,astaxie
+; mysql: go-sql-driver/mysql dsn config string
+; e.g. root:password@/session_table
+PROVIDER_CONFIG = data/sessions
+; session cookie name
+COOKIE_NAME = i_like_gogits
+; if you use session in https only, default is false
+COOKIE_SECURE = false
+; enable set cookie, default is true
+ENABLE_SET_COOKIE = true
+; session gc time interval, default is 86400
+GC_INTERVAL_TIME = 86400
+; session life time, default is 86400
+SESSION_LIFE_TIME = 86400
+; session id hash func, default is sha1
+SESSION_ID_HASHFUNC = sha1
+; session hash key, default is use random string
+SESSION_ID_HASHKEY =
+
[picture]
; The place to picture data, either "server" or "qiniu", default is "server"
SERVICE = server