Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: drosanda on March 01, 2021, 08:39:57 PM

Title: Change / Setup Roundcube CDN
Post by: drosanda on March 01, 2021, 08:39:57 PM
Hi All,

Short story I have webmail on:
- https://webmail.example.com

and active cdn url
- https://cdnwebmail.example.com

When I see the html codes from the web
- <link rel="stylesheet" type="text/css" href="skins/larry/styles.min.css?s=1532894688" />

So, Can I setup Roundcube assets (JS/CSS) through CDN? like this
- <link rel="stylesheet" type="text/css" href="https://webmail.example.com/skins/larry/styles.min.css?s=1532894688" />

Btw, i can do little codes in php ;)

Title: Re: Change / Setup Roundcube CDN
Post by: alec on March 02, 2021, 02:00:51 AM

// Allows to define separate server/path for image/js/css files
// Warning: If the domain is different cross-domain access to some
// resources need to be allowed
// Sample:
//    <FilesMatch ".(eot|ttf|woff)">
//    Header set Access-Control-Allow-Origin "*"
//    </FilesMatch>
$config['assets_path'] = '';

Title: Re: Change / Setup Roundcube CDN
Post by: drosanda on March 02, 2021, 08:52:59 AM
Hi Alec,

Thanks for your reply, it was run perfectly..

Thanks..   :D