Jump to content

Use a pull CDN for Screenshots


Dasweb
 Share

Recommended Posts

I use a CDN that pulls statics from my site, this works fine for logo, js, css, etc.  I replaced the URL for statics in my website customization setting with my CDN url.

I tried to do the same with screenshots, but it breaks the URL.

What is the proper way to edit the pathing so that it still points to the correct url?


{{$item.screen_url}}/{{$lang.videos.thumb_size}}/{{$item.screen_main}}.jpg

I tried replacing {{$item.screen_url}} with my CDN URL, however it appears this also includes the pathing, which breaks the url.

Link to comment
Share on other sites

Yes, this would apply. In setup.php for each storage directory (e.g. video screenshot directory) there are 2 variables defined:

  • Filesystem PATH
  • Public serving URL

If you want them to be stored locally, but to be served from remote URL, all you need is to change URL variable and leave PATH variable as is.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...