Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Nginx Module for Authenticating Akamai G2O requests
C Ruby HTML
Branch: master

Merge pull request #8 from erankor/master

add settings to support debuging of g2o problems
latest commit 9c85add929
@refractalize authored
Failed to load latest commit information.
setup-files moving stuff about
spec
.gitignore ignore vim swap files
Gemfile testing documentation, gemfile
Gemfile.lock testing documentation, gemfile
README.md testing documentation, gemfile
Rakefile testing with latest nginx
config config for module
curl_g2o We can do --output-file FILE simply with curl's -o FILE
ngx_http_akamai_g2o_module.c add settings to support debuging of g2o problems

README.md

Akamai G2O module for Nginx

Controls access to content from Akamai edge servers, using the G2O headers: X-Akamai-G2O-Auth-Data and X-Akamai-G2O-Auth-Sign.

Installation

Like any other nginx module use the --add-module option when configuring:

./configure --add-module=$PATH_TO_G2O_DIR

It requires OpenSSL.

Configuration

Place the following settings (g2o, g2o_nonce and g2o_key) into a main, server or location section of your conf file:

location /download {
    g2o        on;
    g2o_nonce  "token";
    g2o_key    "a_password";
}

Testing

Get ruby, then install dependencies:

bundle

Then run the tests:

rspec

Write more tests in spec/*.rb

Something went wrong with that request. Please try again.