CDN
Supervisely allows you to use CDN services to fetch images and videos in labeling tools to speedup data fetching from remote locations. This guide will help you to configure CND on external services.

Cloudfront

a). Go to Services โ†’ Cloudfront โ†’ Distributions โ†’ Create distribution
b). Provide the following values:
โ€” "Origin domain" type the domain address of your server that Amazon will use to get the files from. In most cases it will be your "SERVER_ADDRESS" value from the ".env" file;
โ€” Protocol: Match viewer;
โ€” HTTP port: use the value of "PROXY_PORT" from the ".env" file;
โ€” Cache key and origin requests;
You can either select "Legacy cache settings" or setup policies to your liking. CachePolicy: "CachingOptimized" OriginPolicy: "AllViewer". Notice Supervisely might require cookies forwarding depending on the configuration.
c). Copy the "Distribution domain name"
1
cd $(sudo supervisely where)
Copied!
Set "CDN_DOMAIN" in ".env" file to the value you've just copied:
1
CDN_DOMAIN=someawsdomain.cloudfront.net
Copied!
Create or update docker-compose.override.yml:
1
version: '2.4'
2
services:
3
api:
4
CDN_DOMAIN: ${CDN_DOMAIN}
Copied!
Deploy the changes:
1
sudo supervisely up -d api
Copied!
d). Now you can go on and open any Labeling Tool, all the urls will be replaced with CDN domain. If nothing shows up, go back to the Distributions page on AWS and wait for status to change from "Deploying" to the current date.
Last modified 1mo ago
Copy link
Contents
Cloudfront