aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/service.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-12-14 04:14:43 +0000
committertechknowlogick <techknowlogick@gitea.io>2019-12-13 23:14:43 -0500
commitf6ba912cd6e1868e8f66c5a38cbe317f243d7806 (patch)
tree9bfe3bf4501b10eadccf304945aaeb7b206b667b /modules/setting/service.go
parentbfcce5f86ccd46d18b6ca53889b04cc3b13fd2d8 (diff)
downloadgitea-f6ba912cd6e1868e8f66c5a38cbe317f243d7806.tar.gz
gitea-f6ba912cd6e1868e8f66c5a38cbe317f243d7806.zip
Default NO_REPLY_ADDRESS to DOMAIN (#9325)
* Default NO_REPLY_ADDRESS to DOMAIN The default NO_REPLY_ADDRESS was previously noreply.example.org This PR changes this to default to the default DOMAIN for gitea. * Change default to noreply.%(DOMAIN)s * Change default to "noreply" + Domain
Diffstat (limited to 'modules/setting/service.go')
-rw-r--r--modules/setting/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/service.go b/modules/setting/service.go
index 6cbee8234d..9407231ac6 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -83,7 +83,7 @@ func newService() {
Service.DefaultEnableDependencies = sec.Key("DEFAULT_ENABLE_DEPENDENCIES").MustBool(true)
Service.AllowCrossRepositoryDependencies = sec.Key("ALLOW_CROSS_REPOSITORY_DEPENDENCIES").MustBool(true)
Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)
- Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org")
+ Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply." + Domain)
Service.EnableUserHeatmap = sec.Key("ENABLE_USER_HEATMAP").MustBool(true)
Service.AutoWatchNewRepos = sec.Key("AUTO_WATCH_NEW_REPOS").MustBool(true)
Service.AutoWatchOnChanges = sec.Key("AUTO_WATCH_ON_CHANGES").MustBool(false)