Skip to content

No documentation to change domain and subdomain  #293

Description

@chris480

I see that CloudinaryConfiguration has a field for cdn_domain
There is no clear way to set it as described in the documentation

Versions and Libraries (fill in the version numbers)

Angular Cloudinary SDK - 5.x

Activity

  1. shirlymanor commented on Aug 7, 2020

    @shirlymanor

    @chris480 if you have a cname on your account (available for our advance plan and higher) you can add it in the config by copy and paste from your dashboard.
    It will look like: CLOUDINARY_URL=cloudinary://XXXX:XXXX@XXXX?cname=

  2. chris480 commented on Aug 7, 2020

    @chris480
    Author

    @shirlymanor So something like this?

    CloudinaryModule.forRoot({Cloudinary}, { cloud_name: 'your_cloud_name', cname: 'cdn.company.com' } as CloudinaryConfiguration),

  3. shirlymanor commented on Aug 7, 2020

    @shirlymanor

    Here is an example:

    <CloudinaryContext cname="media.mysite.com" cloudName="mysite" privateCdn>
      <CloudinaryImage publicId="myImage" />
    </CloudinaryContext>
    
  4. chris480 commented on Aug 8, 2020

    @chris480
    Author

    Isn't that the React setup?

  5. michalkcloudinay commented on Aug 10, 2020

    @michalkcloudinay

    Hi @chris480,

    This should work:

    CloudinaryModule.forRoot({Cloudinary}, { cloud_name: 'your_cloud_name', cname: 'cdn.company.com' } as CloudinaryConfiguration),

  6. chris480 commented on Aug 13, 2020

    @chris480
    Author

    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions