Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CDN option in configuration #1020

Open
nfriedli opened this issue Feb 1, 2015 · 4 comments
Open

Add a CDN option in configuration #1020

nfriedli opened this issue Feb 1, 2015 · 4 comments

Comments

@nfriedli
Copy link
Contributor

nfriedli commented Feb 1, 2015

With Amazon CloudFront (and probably with another...), it's really easy to serve static files via a CDN. For example:

  1. I've an image on my website: http://domain.tld/_media/test.jpg
  2. I activate a CloudFront distribution, like http://d3luaahep0xjls.cloudfront.net/ with http://domain.tld source.
  3. So my image is now accessible via http://d3luaahep0xjls.cloudfront.net/_media/test.jpg

To use a CDN, I only need to display a new adress prefix for media files when rendrering the public page: http://d3luaahep0xjls.cloudfront.net/_media/ instead of http://domain.tld/_media/

I would be nice to have a CDN prefix configuration option in DokuWiki, which just add a prefix or replace the canonical domain name.

@splitbrain
Copy link
Collaborator

I like that idea. Patches welcome

@selfthinker
Copy link
Collaborator

FYI, there was a similar feature request in the old bugtracker: https://bugs.dokuwiki.org/index.php?do=details&task_id=2592

@nfriedli
Copy link
Contributor Author

Here is a proof of concept ;)
https://github.com/nfriedli/dokuwiki/commit/c679aac9a5441ab30b500d7d29f0331ffed95d05

Just have a look here: http://frdl.ch/web/dokuwiki/cdn (in french).

@mylylyl
Copy link

mylylyl commented Jan 24, 2018

It's 2018 and no cdn support yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants