diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-12-21 15:42:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 07:42:16 +0000 |
commit | 177cea7c70473e375c1695f1e20fb9d538ff78fb (patch) | |
tree | 565fc8280ae21c70314937830316a37d7595b93c /modules/setting | |
parent | fe5a61639237138d6bb87cde17aedca3eb5bdd12 (diff) | |
download | gitea-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.go | 2 |
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 } |