beardcoder/sitemap_generator

View on GitHub
Build/etc/nginx/vhost.common.d/02-dev.conf

Summary

Maintainability
Test Coverage
access_log off;

location ~* \.(css|js|gif|png|jpg|svg)$ {
    expires    off;
    add_header Cache-Control private;
}

## Disable .htaccess and other hidden files
location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;
}

location = /favicon.ico {
    log_not_found off;
    access_log off;
}

location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
}

location /_Resources/ {
    access_log off;
    log_not_found off;
    expires max;
    break;
}

location /_Resources/Persistent/ {
    access_log off;
    log_not_found off;
    expires max;

    rewrite "(.{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break;
    rewrite "([a-z0-9]+/(.+/)?[a-f0-9]{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break;
}