gitlab-org--gitlab-foss/config/initializers/default_url_options.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
425 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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
2015-11-25 11:18:44 -05:00
Rails.application.routes.default_url_options = default_url_options
2016-06-16 06:47:01 -04:00
ActionMailer::Base.asset_host = Settings.gitlab['base_url']