summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-01 21:30:04 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-01 21:30:04 -0400
commite7d8fadb083451c632af43de862eab88adb5b29a (patch)
tree25e4b39d2c43edcd3aa0b2686c4fede2264c236a /modules/base
parent3bd5fc6d6f5e1a04acf93929808f982417031e2e (diff)
downloadgitea-e7d8fadb083451c632af43de862eab88adb5b29a.tar.gz
gitea-e7d8fadb083451c632af43de862eab88adb5b29a.zip
Add disable gravatar option
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/conf.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index eab83d20af..126fd63d2e 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -80,7 +80,8 @@ var (
SessionConfig *session.Config
SessionManager *session.Manager
- PictureService string
+ PictureService string
+ DisableGravatar bool
EnableRedis bool
EnableMemcache bool
@@ -345,7 +346,9 @@ func NewConfigContext() {
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")
CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME")
CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME")
+
PictureService = Cfg.MustValue("picture", "SERVICE")
+ DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR", false)
// Determine and create root git reposiroty path.
homeDir, err := com.HomeDir()