Commit 25924a9089ae813fe9ec8697f6bd3798377d60fb
1 parent
8ee0993f
Exists in
master
and in
4 other branches
Email link https support
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
app/mailers/notify.rb
1 | class Notify < ActionMailer::Base | 1 | class Notify < ActionMailer::Base |
2 | default_url_options[:host] = EMAIL_OPTS["host"] | 2 | default_url_options[:host] = EMAIL_OPTS["host"] |
3 | + default_url_options[:protocol] = -> { EMAIL_OPTS["protocol"] ? EMAIL_OPTS["protocol"] : "http" }.call | ||
4 | + | ||
3 | default from: EMAIL_OPTS["from"] | 5 | default from: EMAIL_OPTS["from"] |
4 | 6 | ||
5 | def new_user_email(user, password) | 7 | def new_user_email(user, password) |
config/gitlab.yml.example
@@ -6,6 +6,10 @@ email: | @@ -6,6 +6,10 @@ email: | ||
6 | from: notify@gitlabhq.com | 6 | from: notify@gitlabhq.com |
7 | host: gitlabhq.com | 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 | # Git Hosting congiguration | 13 | # Git Hosting congiguration |
10 | git_host: | 14 | git_host: |
11 | system: gitolite | 15 | system: gitolite |