Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

cdn_files

11 Apr 2015, 04:37

I'm referring to this setting
Code
    cdn_files: # Assign a CDN url or subdomain to serve images
and I'm asking how to use it. Suppose I'd want to use another domain to serve images (es. http://www.images.com). I've to put the complete path in this setting and to mirror che content directory on the remote server?

For example I've to put there http://www.images.com/gallery/ and here a complete copy of the content directory?

Thanks!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: cdn_files

12 Apr 2015, 03:02

Hmm, I am not sure it works as you may be thinking ... The images still need to be on the same server/location as X3, because X3 needs to read the images and resize them. You can't really just add your images to a remote server, unless you mirror everything identically as the origin server including resized images (which is unlikely).

There are TWO ways to use this setting basically:

1) Use with a premium CDN like we are doing at demo.photo.gallery, where we have our CDN provider pull images from our server on request, and cache in global locations.

2) You can use this setting with a subdomain (for example images.yourdomain.com), which basically points to the same location on your server as X3. This has very little benefit in X3.
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: cdn_files

12 Apr 2015, 05:18

Understood. I thought that X3 could take images from another server. I'll investigate a CDN but since all my users are from italy I don't think I'll benefit too much from a CDN, apart from unloading my server maybe...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: cdn_files

12 Apr 2015, 12:08

andreamarucci wrote:Understood. I thought that X3 could take images from another server.
Unfortunately no, because Imagevue needs to be able to read the images from local folders to be able to list them, resize them and get the data, and the same goes for pages in general.
andreamarucci wrote:I'll investigate a CDN but since all my users are from italy I don't think I'll benefit too much from a CDN, apart from unloading my server maybe...
Correct. I added some more info here:
https://forum.photo.gallery/viewtopic.p ... 192#p37192