Add support for alternative download domain #3
@ -291,7 +291,8 @@ class BuildsRenderer {
|
|||||||
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http");
|
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http");
|
||||||
}
|
}
|
||||||
|
|
||||||
$host_id = getHostId();
|
// Try to use the CDN host, otherwise use existing host
|
||||||
|
$host_id = getenv('HOST_CDN') ?: getHostId();
|
||||||
|
|
||||||
$uri = $protocol . "://$host_id" . "$request_uri";
|
$uri = $protocol . "://$host_id" . "$request_uri";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user