How to password protect staging environment?

This nginx change certainly shouldn’t affect S3 uploads or the S3 CDN. NGINX is not involved there at all. I had assumed you were using local uploads with a CDN?

The ideal situation is to make the staging site configured identically to the production site.