Set default_url_options for action_mailer

This saves having to repeat the same host and protocol options
throughout the notifiers
This commit is contained in:
Andy Allan 2018-04-11 15:53:30 +08:00
parent fc90b73581
commit 713de1fadb
3 changed files with 18 additions and 34 deletions

View file

@ -43,5 +43,8 @@ module OpenStreetMap
config.logstasher.logger_path = LOGSTASH_PATH
config.logstasher.log_controller_parameters = true
end
# Set the host and protocol for all action mailer urls
config.action_mailer.default_url_options = { :host => SERVER_URL, :protocol => SERVER_PROTOCOL }
end
end