BigW Consortium Gitlab

default_url_options.rb 404 Bytes
Newer Older
1 2 3 4 5
default_url_options = {
  host:        Gitlab.config.gitlab.host,
  protocol:    Gitlab.config.gitlab.protocol,
  script_name: Gitlab.config.gitlab.relative_url_root
}
6

7 8
unless Gitlab.config.gitlab_on_standard_port?
  default_url_options[:port] = Gitlab.config.gitlab.port
9
end
10

Valery Sizov committed
11
Rails.application.routes.default_url_options = default_url_options
Sean McGivern committed
12
ActionMailer::Base.asset_host = Settings.gitlab['base_url']