Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Don’t store the absolute paths in the DB’s. Always store the path with CNAME as prefix.

example:

https://CNAME/ntpstore.diksha.gov.in/tp-content-production/content/assets/do_31329674183946240014126/a-boy-animation-1.mp4

...

Configure the service with CNAME value as shown below

CNAMEcname_properties: [“downloadUrl“, “appIcon”, “posterImage”]

CNAME: httpscname: [ { type: “cdn”, cname: “https://cdn.diksha.gov.in”, default: “https://cdn-ntpproduction.core.windows.net/ “, }, { type: “blob”, cname: “https://store.diksha.gov.in”, default: “https://ntpproductionall.blob.core.windows.net/ “, }, ]

cname_properties: Service will be looking for these properties while writing. Any aboslute path sending for these properties will get updaetd with CNAME value

Only while creation(POST API calls), we will be replacing the properties on the request body(CNAME_properties) with CNAME & store in the DB.

...