Commit e54b457ea31eff54d031b7092a2a78dc81c69a63

Authored by Dmitriy Zaporozhets
1 parent 2134e18e

Improve ssh_host settings

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
config/initializers/1_settings.rb
... ... @@ -73,7 +73,7 @@ Settings.gitlab['default_projects_limit'] ||= 10
73 73 Settings.gitlab['default_can_create_group'] = true if Settings.gitlab['default_can_create_group'].nil?
74 74 Settings.gitlab['default_theme'] = Gitlab::Theme::MARS if Settings.gitlab['default_theme'].nil?
75 75 Settings.gitlab['host'] ||= 'localhost'
76   -Settings.gitlab['ssh_host'] ||= 'localhost'
  76 +Settings.gitlab['ssh_host'] ||= Settings.gitlab.host
77 77 Settings.gitlab['https'] = false if Settings.gitlab['https'].nil?
78 78 Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80
79 79 Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || ''
... ... @@ -118,7 +118,7 @@ Settings.gitlab_shell['hooks_path'] ||= Settings.gitlab['user_home'] + '/gitla
118 118 Settings.gitlab_shell['receive_pack'] = true if Settings.gitlab_shell['receive_pack'].nil?
119 119 Settings.gitlab_shell['upload_pack'] = true if Settings.gitlab_shell['upload_pack'].nil?
120 120 Settings.gitlab_shell['repos_path'] ||= Settings.gitlab['user_home'] + '/repositories/'
121   -Settings.gitlab_shell['ssh_host'] ||= (Settings.gitlab.ssh_host || Settings.gitlab.host || 'localhost')
  121 +Settings.gitlab_shell['ssh_host'] ||= Settings.gitlab.ssh_host
122 122 Settings.gitlab_shell['ssh_port'] ||= 22
123 123 Settings.gitlab_shell['ssh_user'] ||= Settings.gitlab.user
124 124 Settings.gitlab_shell['owner_group'] ||= Settings.gitlab.user
... ...