Clone the repository into a root hidden .theme folder
git clone https://github.com/silvus/nginx-autoindex-theme.git .theme
Add the following parameters to your nginx configuration
add_before_body /.theme/header.html;
autoindex_exact_size off;
autoindex on;
For information, the html code will be invalid, there will be two <html>
tags.