anomalizer / ngx_aws_auth

nginx module to proxy to authenticated AWS services
BSD 2-Clause "Simplified" License
470 stars 144 forks source link

Add dynamic variable support for access_key and access_secret (#1) #34

Open acejam opened 8 years ago

acejam commented 8 years ago

This PR adds dynamic variable support for the v2 branch of the ngx_aws_auth module. This allows nginx to read in S3 configuration values from nginx variables.

There are various ways to populate these nginx variables - environment variables likely being the most popular. However, that also requires the use of the Lua module.

An example configuration using the Lua module and this PR can be found here: https://github.com/acejam/nginx-s3-proxy/blob/master/default.conf#L11