Add support for alternative download domain #3
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-buildbot-www#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "cdn-support-for-downloads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change facilitates the introduction of a CDN to serve files under the /download path.
When constructing the download url in getFileNameURL, look for a DOWNLOAD_FILE_DOMAIN env variable, and use it to construct the download url for a build. If the env variable is not set, the existing host is used (current behavior).
I don't fully understand how the setup is supposed to work.
But even without going that the implementation seems to be inconsistemt.
@ -289,3 +287,3 @@
$protocol = "https";
$host_id = getHostId();
$env_id = getEnvId();
The environment ID depends on
getHostId()
. If the host ID is somehow to depend on configuration, it needs to be consistently handled ingetHostId()
Add support for CDN downloadsto Add support for alternative download originAdd support for alternative download originto Add support for alternative download domain