2021-06-13 23:09:53 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# This module is used to return various SaaS related configurations
|
|
|
|
# which may be overridden in other variants of GitLab
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Saas
|
|
|
|
def self.com_url
|
|
|
|
'https://gitlab.com'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.staging_com_url
|
|
|
|
'https://staging.gitlab.com'
|
|
|
|
end
|
|
|
|
|
2021-12-16 19:15:24 -05:00
|
|
|
def self.canary_toggle_com_url
|
|
|
|
'https://next.gitlab.com'
|
|
|
|
end
|
|
|
|
|
2021-06-13 23:09:53 -04:00
|
|
|
def self.subdomain_regex
|
2022-01-28 07:17:26 -05:00
|
|
|
%r{\Ahttps://[a-z0-9-]+\.gitlab\.com\z}.freeze
|
2021-06-13 23:09:53 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.dev_url
|
|
|
|
'https://dev.gitlab.org'
|
|
|
|
end
|
2021-09-10 11:11:12 -04:00
|
|
|
|
|
|
|
def self.registry_prefix
|
|
|
|
'registry.gitlab.com'
|
|
|
|
end
|
2021-09-17 14:11:44 -04:00
|
|
|
|
|
|
|
def self.customer_support_url
|
|
|
|
'https://support.gitlab.com'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.customer_license_support_url
|
|
|
|
'https://support.gitlab.com/hc/en-us/requests/new?ticket_form_id=360000071293'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.gitlab_com_status_url
|
|
|
|
'https://status.gitlab.com'
|
|
|
|
end
|
2021-10-14 20:12:13 -04:00
|
|
|
|
|
|
|
def self.about_pricing_url
|
2021-11-11 22:12:11 -05:00
|
|
|
"https://about.gitlab.com/pricing/"
|
2021-10-14 20:12:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.about_pricing_faq_url
|
2021-10-22 23:09:31 -04:00
|
|
|
"https://about.gitlab.com/pricing#faq"
|
2021-10-14 20:12:13 -04:00
|
|
|
end
|
2022-06-22 08:08:59 -04:00
|
|
|
|
|
|
|
def self.doc_url
|
|
|
|
'https://docs.gitlab.com'
|
|
|
|
end
|
2022-07-27 20:09:28 -04:00
|
|
|
|
|
|
|
def self.community_forum_url
|
|
|
|
'https://forum.gitlab.com'
|
|
|
|
end
|
2021-06-13 23:09:53 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Gitlab::Saas.prepend_mod
|