server {
        listen  80;
        server_name CHANGEME;
        root ~/sites/$SITE_NAME-live/$PROJECT_NAME;
        access_log /var/log/nginx/$SITE_NAME_access.log;
        error_log /var/log/nginx/$SITE_NAME_access.log;

         location /static/images {
            alias ~/sites/$SITE_NAME-live/static/images;
            gzip off;
            expires 30m;
         }

        location /static {
            alias ~/sites/$SITE_NAME-live/static;
            gzip on;
            expires 30m;
        }

        location /media {
            gzip on;
            expires 24h;  # otherwise client wont cache
        }

        location / {
            uwsgi_pass unix:///var/run/uwsgi/$SITE_NAME-live.sock;
            include uwsgi.params;
        }
}