# Example: nginx fancy index with this theme
#
# 1. Copy the whole theme folder to your web root, e.g. /var/www/html/fancy/
# 2. Include this inside the server { } or location { } that serves directories.

location / {
    autoindex off;

    fancyindex on;
    fancyindex_exact_size off;
    fancyindex_localtime on;
    fancyindex_name_length 255;

    # Paths to header/footer (adjust to your install path)
    fancyindex_header "/var/www/html/fancy/header.html";
    fancyindex_footer "/var/www/html/fancy/footer.html";

    # Optional: ignore theme assets in listings
    fancyindex_ignore "fancy";
}

# Serve the theme at /fancy/ (same root as above)
location /fancy/ {
    alias /var/www/html/fancy/;
    add_header Cache-Control "public, max-age=3600";
}
