end
def push_url
- "git@git.%s.arvadosapi.com:%s.git" % [Rails.configuration.uuid_prefix, name]
+ if Rails.configuration.git_host
+ "git@%s:%s.git" % [Rails.configuration.git_host, name]
+ else
+ "git@git.%s.arvadosapi.com:%s.git" % [Rails.configuration.uuid_prefix, name]
+ end
end
def fetch_url
# logic for deciding on a hostname.
host: false
+ # If not false, this is the hostname that will be used to generate fetch_url
+ # and push_url for git repositories. By default, this will be
+ # git.(uuid_prefix).arvadosapi.com
+ git_host: false
+
# If this is not false, HTML requests at the API server's root URL
# are redirected to this location, and it is provided in the text of
# user activation notification email messages to remind them where