Skip to content

cschwede/swift-automime

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Openstack Swift automime middleware

automime is a middleware that sets the content-encoding and content-type metadata entry automatically by checking the object name suffix on PUT requests. It is disabled by default and can be enabled on a per-container basis.

Quick Install

  1. Install automime:

    git clone git://github.com/cschwede/swift-automime.git cd swift-automime sudo python setup.py install

  2. Add a filter entry for automime to your proxy-server.conf:

    [filter:automime] use = egg:swift_automime#automime

  3. Alter your proxy-server.conf pipeline and add automime after any authentication middleware:

    [pipeline:main] pipeline = catch_errors healthcheck cache tempauth formpost tempurl automime proxy-server

  4. Restart your proxy server:

    swift-init proxy reload

  5. Enable this for a given container:

    swift post container -m "automime: true"

Done!

About

A middleware for OpenStack Swift, automatically setting the content-type/content-encoding on PUT requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages