I've got a slightly strange situation where I need to proxy s3 (yes, I know, I know, not ideal, performance, etc).
The issue is the buckets need to be restricted to a select number of client ips, and the list of IP's is already going to be in the bucket's profile.
When proxying however S3 doesn't seem to take an X-Forwarded-For or X-Real-IP header.
Can this even be done? Alternatively, is there a way for Nginx to read either the policy, or maybe a text file containing the ip's inside the bucket before allowing access?