Commit cd8a302997aa8214de8a8e27fe9bb87c1b8abdf2

Authored by Dmitriy Zaporozhets
1 parent d9270337

Fix application crash on help page

config/gitlab.yml.example
... ... @@ -29,6 +29,9 @@ gitlab:
29 29 # Email address used in the "From" field in mails sent by GitLab
30 30 email_from: gitlab@localhost
31 31  
  32 + # Email address of your support contanct (default: same as email_from)
  33 + support_email: support@localhost
  34 +
32 35 ## Project settings
33 36 default_projects_limit: 10
34 37 # signup_enabled: true # default: false - Account passwords are not sent via the email if signup is enabled.
... ...
config/initializers/1_settings.rb
... ... @@ -49,6 +49,7 @@ Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80
49 49 Settings.gitlab['relative_url_root'] ||= ''
50 50 Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http"
51 51 Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}"
  52 +Settings.gitlab['support_email'] ||= Settings.gitlab.email_from
52 53 Settings.gitlab['url'] ||= Settings.send(:build_gitlab_url)
53 54 Settings.gitlab['user'] ||= 'gitlab'
54 55 Settings.gitlab['signup_enabled'] ||= false
... ...