mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 11:36:09 +10:00
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user