Commit b71e5a17 authored by Robert Speicher's avatar Robert Speicher

Add default_url_options initializer

Fixes #2266
parent 926a8146
unless Rails.env.test?
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
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment