2015-04-25 19:41:46 -04:00
|
|
|
default_url_options = {
|
|
|
|
host: Gitlab.config.gitlab.host,
|
|
|
|
protocol: Gitlab.config.gitlab.protocol,
|
|
|
|
script_name: Gitlab.config.gitlab.relative_url_root
|
|
|
|
}
|
2015-04-23 12:58:11 -04:00
|
|
|
|
2015-04-25 19:41:46 -04:00
|
|
|
unless Gitlab.config.gitlab_on_standard_port?
|
|
|
|
default_url_options[:port] = Gitlab.config.gitlab.port
|
2015-04-23 12:58:11 -04:00
|
|
|
end
|
2015-04-25 19:41:46 -04:00
|
|
|
|
|
|
|
Rails.application.routes.default_url_options = default_url_options
|