Setting up Custom CNAME

  1. Pick a domain name that you want to use (e.g. cdn.mydomain.com) and let us know of your choice.
  2. If you want to use HTTPS, have proper certificate prepared.
  3. Add a CNAME record to your DNS zone, e.g.: cdn CNAME mycompany.ucarecdn.com.
  4. Once everything is set up and DNS changes propagate, you will need to use new URLs with your domain name:
  5. Configure your widgets to return proper URLs. E.g.: UPLOADCARE_CDN_BASE = cdn.mydomain.com;
  6. Replace hostname in URLs of already uploaded files served by your app. We recommend having an easily configurable setting over hard coding hostname of your URLs.