Configure Nginx for aws s3 static and media files


I am using aws s3 for static and media files for my django app. Gunicorn and Nginx are being used for application and proxy server.

Nginx setup:

Since I am using aws s3 for my static and media files, how should I configure Nginx for my static location? Or there’s no need to configure for the static and media files?

If it helps, here is the Django project settings for aws s3:

Eg url:


In case of S3, nginx is not responsible for serving static and media files and you no need to configure anything.

Leave a Reply