server {
    listen 80 default_server;

    root /data;
    index index.html index.htm;

    location / {
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
        expires max;
        try_files $uri $uri/ =404;
    }
}
