xbgmsharp / piwigo-cdnplus

Piwigo plugin that allow easy CDN integration
http://piwigo.org/ext/extension_view.php?eid=788
GNU General Public License v3.0
0 stars 3 forks source link

CDNPlus Integration #3

Open Ferosin opened 9 years ago

Ferosin commented 9 years ago

I have installed the plugin and pointed it to my CDN on cloud front i know that it can access the pictures however now on my piwigo site all the pictures are gone. How do i force my piwigo on the arrive server to sync with cloud front?

xbgmsharp commented 9 years ago

The concept of CDNPlus is:

If I understand you want the all website to be serve by your CDN, www.site.com -> CDN -> Origin? In this case you don't need CDNPlus. You need to configure PWG root to your CDN domain.

How do i force my piwigo on the arrive server to sync with cloud front?

Could you clarified?

Ferosin commented 9 years ago

Thank you for your help

Sorry I was unclear. I access my site from my server arvixe at www.site.com and I want just my themes and pictures at cdn.www.site.com.

I have set up my cname to point to cdn.www.site.com but when I access PWG at www.site.com and use cdnplus but when I enable cdnplus I can no longer add pictures or albums. The albums I had served locally are no longer seen and my themes no longer work. It's like PWG can not see the files on the cdn.

I know that the can is working. The part I am unclear about is how do I add photos hosted at cdn.www.site.com so they are seen locally by PWG and I can still manage the folders and pictures from www.site.com

The folders themes and galleries on cdn.www.site.com are public and in the same format as the folders on www.site.com. Are there changes I need to make to the index file? I thought that cdnplus handled all of that

xbgmsharp commented 9 years ago

Good catch, I was able to reproduce the issue. I committed fix. please test and feedback.

Ferosin commented 9 years ago

I can now add pictures and albums as the menus now work with cdnplus enabled.

What I can not do is get PWG to see the themes folder or the galleries folder located at cdn.site.com I even went so far as to remove the themes and galleries folders from site.com so that PWG would be forced to use cdn.site.com

I have verified that cdn.site.com works with external requests by pulling objects directly from the cdn and linking the images on a test site i set up. So the testsite.com pulls the images directly from cdn.site.com

xbgmsharp commented 9 years ago

Sorry for the delay. I don't understand what you mean by: "What I can not do is get PWG to see the themes folder or the galleries folder located at cdn.site.com" Would you be able to clarified?

The concept of CDNPlus is to have the themes and/or pictures at cdn.site.com. For the themes you need to select the Apply to theme option. For the pictures you need to select the picture extensions like PNG and JPEG in the File Types option You can also have different cname, like theme.cdn.site.com for the theme and img.cdn.site.com for the picture. See more information in the wiki, https://github.com/xbgmsharp/piwigo-cdnplus/wiki

xbgmsharp commented 9 years ago

I release a new version to fix the admin view. For the second issue, I need your help to clearly understand and reproduce the issue.

joerg-krause commented 8 years ago

@xbgmsharp I am trying to setup Piwigo with a CDN using your plugin. A created an account on cloudflare and CDN77. However, if I activate the CDNplus plugin, no pictures are visible.

Does the CDN server needs to support the push service? Does it need some time until the pictures are available?