ngindex.io/nginx.example.conf
2022-11-07 15:07:56 -07:00

17 lines
393 B
Plaintext

#Example config for the index
location ~ /downloads(.*)/$ {
autoindex on;
#Send the data in JSON
autoindex_format json;
addition_types application/json;
#Calling from SERVERNAME/autoindex/*
add_before_body /autoindex/header.html;
add_after_body /autoindex/footer.html;
#Need to tell that we are sending HTML
add_header Content-Type text/html;
}