Custom NGINX Configurations for AlmaLinux Mirroring
I currently have two clients who requested an AlmaLinux mirror. With the documentation and everything else, it was really simple. However, they asked if I could customize the NGINX view to make it more personalized, so I developed something like this from a fork I found online:
However, this requires making some changes to NGINX to be able to achieve this and that leads me to wonder if the following changes can impact its use as a mirror.
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;
If you need more information, let me know. And thank you very much for your time.