Skip to content

Commit

Permalink
Refs #36928 - remove hard-coded values
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Nov 21, 2023
1 parent 8851de5 commit 46a24de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ def get_parent_host(headers)
hostnames = headers["HTTP_X_FORWARDED_HOST"]
host = hostnames.split(/[,,:]/)[0].strip if hostnames
host || URI.parse(Setting[:foreman_url]).host
"loadbalancer.example.com"
end

def get_content_source_id(hostname)
Expand Down
2 changes: 1 addition & 1 deletion app/models/katello/concerns/smart_proxy_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def alternate_content_sources

def registration_host
url = self.setting('Registration', 'registration_url').presence || self.url
name == "rhel8b.fedora.example.com" ? "loadbalancer.example.com" : URI.parse(url).host
URI.parse(url).host
end

def load_balanced?
Expand Down

0 comments on commit 46a24de

Please sign in to comment.