From f6ba912cd6e1868e8f66c5a38cbe317f243d7806 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 14 Dec 2019 04:14:43 +0000 Subject: 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 --- modules/setting/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/setting/service.go') 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) -- cgit v1.2.3