debian-mirror-gitlab/config/initializers/default_url_options.rb

15 lines
425 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
default_url_options = {
2022-08-27 11:52:29 +05:30
host: Gitlab.config.gitlab.host,
protocol: Gitlab.config.gitlab.protocol,
2015-09-11 14:41:01 +05:30
script_name: Gitlab.config.gitlab.relative_url_root
}
unless Gitlab.config.gitlab_on_standard_port?
default_url_options[:port] = Gitlab.config.gitlab.port
end
2015-12-23 02:04:40 +05:30
Rails.application.routes.default_url_options = default_url_options
2016-06-22 15:30:34 +05:30
ActionMailer::Base.asset_host = Settings.gitlab['base_url']