aperezdc / ngx-fancyindex

Fancy indexes module for the Nginx web server
Other
849 stars 128 forks source link

Load local header and footer files when configuring #116

Closed aperezdc closed 4 years ago

aperezdc commented 4 years ago

Make the configuration process load the local files specified with fancyindex_{header,footer} "foo" local, instead of loading them on every request.

Additionally, change the syntax of the configuration directive to accept an optional parameter indicating whether the header (or footer) is to be loaded as a subrequest (default, for backwards compatibility) or a local file (must be specified explicitly). This avoids the footgun of having a local file which accidentally happens to match the subrequest that one had the intention to do when configuring.


This is a follow-up to #83