summaryrefslogtreecommitdiff
path: root/config/initializers/default_url_options.rb
blob: de2cdc6ecae75fab77af558369ae3bef1e8f4692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
default_url_options = {
  host:        Gitlab.config.gitlab.host,
  protocol:    Gitlab.config.gitlab.protocol,
  script_name: Gitlab.config.gitlab.relative_url_root
}

unless Gitlab.config.gitlab_on_standard_port?
  default_url_options[:port] = Gitlab.config.gitlab.port
end

Rails.application.routes.default_url_options = default_url_options
ActionMailer::Base.asset_host = Settings.gitlab['base_url']