Moved 'env' directives out of nginx config; use http for s3