aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-12-21 15:42:16 +0800
committerGitHub <noreply@github.com>2023-12-21 07:42:16 +0000
commit177cea7c70473e375c1695f1e20fb9d538ff78fb (patch)
tree565fc8280ae21c70314937830316a37d7595b93c /modules/setting
parentfe5a61639237138d6bb87cde17aedca3eb5bdd12 (diff)
downloadgitea-177cea7c70473e375c1695f1e20fb9d538ff78fb.tar.gz
gitea-177cea7c70473e375c1695f1e20fb9d538ff78fb.zip
Make offline mode as default to no connect external avatar service by default (#28548)
To keep user's privacy, make offline mode as true by default. Users can still change it from installation ui and app.ini
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/server.go b/modules/setting/server.go
index d053fee5e7..80b85eeebd 100644
--- a/modules/setting/server.go
+++ b/modules/setting/server.go
@@ -315,7 +315,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
RedirectOtherPort = sec.Key("REDIRECT_OTHER_PORT").MustBool(false)
PortToRedirect = sec.Key("PORT_TO_REDIRECT").MustString("80")
RedirectorUseProxyProtocol = sec.Key("REDIRECTOR_USE_PROXY_PROTOCOL").MustBool(UseProxyProtocol)
- OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
+ OfflineMode = sec.Key("OFFLINE_MODE").MustBool(true)
if len(StaticRootPath) == 0 {
StaticRootPath = AppWorkPath
}