diff options
author | Vyacheslav Slinko <vyacheslav.slinko@gmail.com> | 2015-01-02 15:47:22 +0300 |
---|---|---|
committer | Vyacheslav Slinko <vyacheslav.slinko@gmail.com> | 2015-03-11 11:04:23 +0700 |
commit | 61ed518781cfc78bf1710286d84d4e74521f48d4 (patch) | |
tree | 28f51d37b5d1b5f5afba069aacf4bcb245986d28 /config | |
parent | 21c99e6a7797edb6a857e90c83fee3e5f1051adc (diff) | |
download | gitlab-ce-61ed518781cfc78bf1710286d84d4e74521f48d4.tar.gz |
Make email display name configurable
Diffstat (limited to 'config')
-rw-r--r-- | config/gitlab.yml.example | 1 | ||||
-rw-r--r-- | config/initializers/1_settings.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index 6dff07cf9df..75d9e65aefe 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -43,6 +43,7 @@ production: &base # email_enabled: true # Email address used in the "From" field in mails sent by GitLab email_from: example@example.com + email_display_name: GitLab # Email server smtp settings are in config/initializers/smtp_settings.rb.sample diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 6a8bbb80b9c..70af7a829c4 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -102,6 +102,7 @@ Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || '' Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http" Settings.gitlab['email_enabled'] ||= true if Settings.gitlab['email_enabled'].nil? Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}" +Settings.gitlab['email_display_name'] ||= "GitLab" Settings.gitlab['url'] ||= Settings.send(:build_gitlab_url) Settings.gitlab['user'] ||= 'git' Settings.gitlab['user_home'] ||= begin |