Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation to change domain and subdomain #293

Open
chris480 opened this issue Aug 7, 2020 · 6 comments
Open

No documentation to change domain and subdomain #293

chris480 opened this issue Aug 7, 2020 · 6 comments
Assignees

Comments

@chris480
Copy link

chris480 commented Aug 7, 2020

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

@shirlymanor
Copy link

@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=

@chris480
Copy link
Author

chris480 commented Aug 7, 2020

@shirlymanor So something like this?

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

@shirlymanor
Copy link

Here is an example:

<CloudinaryContext cname="media.mysite.com" cloudName="mysite" privateCdn>
  <CloudinaryImage publicId="myImage" />
</CloudinaryContext>

@chris480
Copy link
Author

chris480 commented Aug 8, 2020

Isn't that the React setup?

@michalkcloudinay
Copy link

Hi @chris480,

This should work:

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

@chris480
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants