Smart Proxy not using HTTP proxy for Installation Media PXE boot file downloads

Problem:
Hello all,

I’m running Foreman 3.17 with a Smart Proxy behind an HTTP proxy.

I configured my proxy in /etc/environment (http_proxy/https_proxy/no_proxy), but when I create an installation media, the Smart Proxy fails to download PXE boot files (vmlinuz/initrd) from https://download.rockylinux.org.


tail -f /var/log/foreman-proxy/proxy.log
2025-12-18T11:40:17 063e835c [I] Started POST /tftp/fetch_boot_file
2025-12-18T11:40:17 063e835c [I] Finished POST /tftp/fetch_boot_file with 200 (2.16 ms)
2025-12-18T11:40:17 063e835c [I] [8273] Started task /usr/bin/curl\ --silent\ --show-error\ --fail\ --connect-timeout\ 10\ --retry\ 3\ --retry-delay\ 10\ --max-time\ 3600\ --remote-time\ --time-cond\ /var/lib/tftpboot/boot/rocky-linux-zyi2eMccZLyp-initrd.img\ --write-out\ Task\ done,\ result:\ \%\{http_code\},\ size\ downloaded:\ \%\{size_download\}b,\ speed:\ \%\{speed_download\}b/s,\ time:\ \%\{time_total\}ms\ --output\ /var/lib/tftpboot/boot/rocky-linux-zyi2eMccZLyp-initrd.img\ --location\ https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os//images/pxeboot/initrd.img
2025-12-18T11:40:17 83e5bdcf [I] Started PUT /discovery/10.32.0.153/power/reboot
2025-12-18T11:40:18 83e5bdcf [I] Finished PUT /discovery/10.32.0.153/power/reboot with 200 (73.33 ms)
2025-12-18T11:41:08 063e835c [W] [8269] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8269] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8269] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8269] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8273] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8273] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8273] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out

2025-12-18T11:41:08 063e835c [W] [8273] curl: (28) Failed to connect to download.rockylinux.org port 443: Connection timed out


Is there a recommended way to make Smart Proxy use a corporate HTTP/HTTPS proxy for installation media downloads?

Any advice or documented solution would be greatly appreciated.

Thank you!

Expected outcome:
The installation Media Component to successfully reach https://download.rockylinux.org/ by using the HTTP proxy.

Foreman and Proxy versions: 3.17

Distribution and version: Rocky Linux 9.6