deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Store assets in a CDN container #13

Closed smashwilson closed 9 years ago

smashwilson commented 9 years ago

Fingerprint and CDN-publish static assets to an asset container during content indexing. We'll also need to correct the links in the original documents somehow.

This is the first part of deconst/deconst-docs#13.

smashwilson commented 9 years ago

:boom:

$ curl -s -F "keycycle=@keycycle.retry" -F "deployed=@deployed.retry" http://docker:9000/assets | python -m json.tool
{
    "deployed.retry": "https://8c772371dd443340bfce-a76b79aca86ab4305d3e9ef5c9a01022.ssl.cf1.rackcdn.com/deployed-d906aecb61d076a967d9ffe8821c7b04b063f72df9d9e35b33ef36b1c0d98f16.retry",
    "keycycle.retry": "https://8c772371dd443340bfce-a76b79aca86ab4305d3e9ef5c9a01022.ssl.cf1.rackcdn.com/keycycle-d906aecb61d076a967d9ffe8821c7b04b063f72df9d9e35b33ef36b1c0d98f16.retry"
}