summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-30 20:52:04 +0100
committerGitHub <noreply@github.com>2020-11-30 14:52:04 -0500
commitbc455ed257a617bb1c033157578c4f864ff4d527 (patch)
tree7bfe311b62c43906a8fdc67ca5bf1019d15dcfe7 /modules/setting/setting.go
parent870fd533202ee7f480e0ddc5bf48abb8e913d369 (diff)
downloadgitea-bc455ed257a617bb1c033157578c4f864ff4d527.tar.gz
gitea-bc455ed257a617bb1c033157578c4f864ff4d527.zip
Set RUN_MODE prod by default (#13765)
I think it's a bad default to have "dev" as the default run mode which enables debugging and now also disables HTTP caching. It's better to just default to a value suitable for general deployments. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 79e7751905..63ae15af97 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -848,7 +848,7 @@ func NewContext() {
}
RunUser = Cfg.Section("").Key("RUN_USER").MustString(user.CurrentUsername())
- RunMode = Cfg.Section("").Key("RUN_MODE").MustString("dev")
+ RunMode = Cfg.Section("").Key("RUN_MODE").MustString("prod")
// Does not check run user when the install lock is off.
if InstallLock {
currentUser, match := IsRunUserMatchCurrentUser(RunUser)