Commit 25924a9089ae813fe9ec8697f6bd3798377d60fb

Authored by Dmitriy Zaporozhets
1 parent 8ee0993f

Email link https support

app/mailers/notify.rb
1 1 class Notify < ActionMailer::Base
2 2 default_url_options[:host] = EMAIL_OPTS["host"]
  3 + default_url_options[:protocol] = -> { EMAIL_OPTS["protocol"] ? EMAIL_OPTS["protocol"] : "http" }.call
  4 +
3 5 default from: EMAIL_OPTS["from"]
4 6  
5 7 def new_user_email(user, password)
... ...
config/gitlab.yml.example
... ... @@ -6,6 +6,10 @@ email:
6 6 from: notify@gitlabhq.com
7 7 host: gitlabhq.com
8 8  
  9 + # Protocol used for links in email letters
  10 + # Value can be http or https
  11 + protocol: http # or https
  12 +
9 13 # Git Hosting congiguration
10 14 git_host:
11 15 system: gitolite
... ...