gitlab-org--gitlab-foss/config/initializers/default_url_options.rb
2016-06-16 11:47:01 +01:00

12 lines
404 B
Ruby

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']