Nginx lua module to get objects from Swift storage
Go to file
Difrex c57a6d072f Logging and fix 403 error 2016-03-03 15:10:26 +03:00
debian Working and debianized 2016-03-02 11:36:36 +03:00
LICENSE Copyright 2016-03-02 11:37:30 +03:00
Makefile Working and debianized 2016-03-02 11:36:36 +03:00
README.md Working and debianized 2016-03-02 11:36:36 +03:00
nginx.sample Working and debianized 2016-03-02 11:36:36 +03:00
swift.json Logging and fix 403 error 2016-03-03 15:10:26 +03:00
swift.lua Logging and fix 403 error 2016-03-03 15:10:26 +03:00

README.md

nginx-lua-swift

Sample nginx configuration

    location ~ /ceph(.*)$ {
        set $path $1;
        
        content_by_lua_file "/etc/nginx/lua/swift";

        error_page 404 @404;
    }

    location @404 {
        echo 'Do what you want';
    }