From d565353ba08e3638ac6fdf1e5c825bedc76dae9a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 27 Jan 2025 09:09:38 +0100 Subject: [PATCH] update URL of local advisor engine as it is deployed by the installer --- lib/foreman_rh_cloud.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/foreman_rh_cloud.rb b/lib/foreman_rh_cloud.rb index 1607e96b..d89c4fb5 100644 --- a/lib/foreman_rh_cloud.rb +++ b/lib/foreman_rh_cloud.rb @@ -5,8 +5,8 @@ module ForemanRhCloud def self.on_premise_url return unless ForemanRhCloud.with_local_advisor_engine? - port = ENV['ADVISOR_ENGINE_PORT'] || "8000" - ENV['ADVISOR_ENGINE_URL'] || "http://#{ForemanRhCloud.foreman_host.fqdn || 'localhost'}:#{port}" + port = ENV['ADVISOR_ENGINE_PORT'] || "24443" + ENV['ADVISOR_ENGINE_URL'] || "https://localhost:#{port}" end def self.env_or_on_premise_url(env_var_name)