• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Included CDN support

Status
Not open for further replies.

Shan

💖 Chevereto Fan
Okay, so after working with anmolgill to get CDN working on my website.

I thought of an idea, why not have it already there?

Adding it was very simple, which took literally 2 minutes to add and edit the values in the config.php and the functions.php files.

However, for new members with no experience to coding whatsoever, this may be a bit more of a challenge, so why not have it in?

Simply under the config.php have a setting with this layout.

PHP:
/** CDN Support
*Please only change this if you know what you're doing.
*Make sure your CDN is configured correctly BEFORE setting this value
*/
$config['CDN_enabled'] = 'true';  // Values: true | false
$config['CDN_url'] = '';  //http(s)://cdn.mysite.com/

And then in the functions.php; having the value of 'true' (default falue would be false)

would change it to use either the CDN url or the _CHV_ROOT_ url

Wouldn't be too hard to implement, like 15+ minutes max as the settings are already there.
 
This depends on how the CDN work. Some CDN will work just fine with this but other ones needs more setup and more hastle to put the files on the server. There is also things like cloudflare that really doesnt need setup.
 
This depends on how the CDN work. Some CDN will work just fine with this but other ones needs more setup and more hastle to put the files on the server. There is also things like cloudflare that really doesnt need setup.

I guess that's true, but most CDN's should function the same way.

And surely it would make it much easier to get it to work. And Cloudflare integration isn't hard either, and seeing more people would most likely use a CDN on their site rather than cloudflare, I'd say further CDN support would be of a higher priority.
 
Status
Not open for further replies.
Back
Top