Commit Graph

222 Commits (527511fbf8d11e4339f91713f9cb396c93f9d19d)

Author SHA1 Message Date
Adrian Perez de Castro 527511fbf8 Load local header and footer files when configuring
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.
2020-10-24 18:52:58 +03:00
JoungKyun Kim 5ac161ccc3 fixed #82 fancyindex can't print list with auth-ldap module
- fixed signedness problems
- fixed gabage characters
2020-10-24 18:34:41 +03:00
Adrian Perez de Castro 140dcb7a8f Properly escape square brackets with old Nginx versions 2020-10-24 15:40:07 +03:00
Adrian Perez de Castro 6637a7afab Update to Nginx 0.8 as oldest supported version 2020-10-24 15:40:07 +03:00
Adrian Perez de Castro d3d7adc89d README: Update CI link to use travis-ci.com instead of .org 2020-10-24 14:08:56 +03:00
Adrian Perez de Castro 52a17b7a17 CI: Update Nginx mainline and stable versions 2020-10-24 14:08:56 +03:00
z4yx 63d19686df add a test of ngx_http_fancyindex_cmp_entries_dirs_first 2020-10-24 13:17:10 +03:00
z4yx b3e06fd31b remove ngx_http_fancyindex_cmp_entries_dirs_first 2020-10-24 13:17:10 +03:00
z4yx c0448985b6 ngx_int_t -> int 2020-10-24 13:17:10 +03:00
z4yx a05006e3c4 replace ngx_sort with ngx_qsort 2020-10-24 13:17:10 +03:00
Joshua Shaffer 56934db14c update readme 2020-05-26 16:14:09 +03:00
Joshua Shaffer 42e21c9153 Added test for show_dotfiles 2020-05-26 16:14:09 +03:00
Joshua Shaffer 7444208a36 t/* should be eol=lf so bash can run 2020-05-26 16:14:09 +03:00
Joshua Shaffer 94bb8164b2 Fixes #54. Adds configuration option 'fancyindex_show_dotfiles' to show dotfiles. 2020-05-26 16:14:09 +03:00
Adrian Perez de Castro 11101de198
make-dist: Add script to generate release tarballs
Because the source archives from GitHub tags may not always produce the
same tarball when fetching at different times. Having proper tarballs
for releases also allows signing them i.e. with PGP.
2020-02-19 13:05:55 +02:00
Adrian Perez de Castro 58fecc865d
Version 0.4.4 2020-02-19 12:56:12 +02:00
Anders Trier 21a084d61d Add CRLF after the 'Parent directory' line. This makes the output easier to parse. 2020-02-19 12:44:32 +02:00
kPherox fa13aef31b Add test for `fancyindex_hide_parent_dir on` 2018-10-15 11:28:09 +02:00
kPherox 47ce20d993 refs aperezdc/ngx-fancyindex#57 Add `fancyindex_hide_parent_dir` directive 2018-10-15 11:28:09 +02:00
Nicolas CARPi 7abb6e3693 Fix some issues in the README file
* fix nginx URL (.org not .net and HTTPS)
* fix protocol for die.net URL
* fix underline too short for fancyindex_show_path
* fix "module module" sentence
2018-10-15 02:10:55 +02:00
Adrian Perez de Castro 473c1de024 Properly encode filenames as URI components
Fixes #95
2018-08-30 00:12:47 +03:00
Adrian Perez de Castro a3929d7074 CI: Update Nginx mainline to version 1.15.2 2018-08-15 14:28:52 +02:00
David Beitey e6ddb517ca Mention awk fails on macOS and provide a solution 2018-07-13 01:22:48 +03:00
David Beitey aa0be2dcaa Fix encoding of & chars in table header 2018-07-13 01:11:20 +03:00
Adrian Perez de Castro d1b2f36738
Version 0.4.3 2018-07-03 02:53:45 +03:00
Adrian Perez de Castro a983c2c899
Add test case for sort order by file-size after
This tests the fix from PR #88 and by having it in the test suite
it will make sure that sorting by size dos not get broken again.
2018-07-03 02:41:13 +03:00
qjqqyy 2b2244551f Fix decreasing sort by file size
fixes #77
2018-07-03 02:39:57 +03:00
Adrian Perez de Castro 6f812eba8e Add a test case which uses pup to check a listing 2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 604b43b336 Add pup() and use() function to allow skipping when pup is unavailable
The "use pup" construct will skip a test case that needs pup installed.
The pup() function ensures that the downloaded binary is used.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 60f09e450d Allow skipping test cases
This defines a skip() function in the tests preamble which can
be used to skip tests. Skipped tests are counted, and a reason
for them being skipped printed after running the tests.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 501f9bc63c CI: Add script to fetch and validate a binary build of pup
The script downloads and validates the download against a built-in
list of known checksums for the release ZIP files.

More on pup: https://github.com/ericchiang/pup/
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 5f265ab6eb
Add themes by @fraoustin and @alehaa
Closes #87
2018-07-03 01:01:31 +03:00
Adrian Perez de Castro df593a20f3 CI: Switch mainline Nginx to 0.15.0, update older versions
In particular, version 1.11.6 does not even appear in the main
download page. Of course the tarballs are still in the archives,
but not being listed seems like a good criteria to remove it from
the testing matrix. Also, change 1.10.2 to 1.10.3, which is the
latest minor release from the series.
2018-07-03 00:26:29 +03:00
Lilian Besson 5dd4ec3b3c Typo on code block formatting 2018-07-02 23:46:01 +03:00
Martchus 4ae6c87246 Test latest stable and mainline releases on Travis 2018-05-02 23:17:51 +03:00
Adrian Perez de Castro c5bf62212e
CI: Update mainline/stable Nginx versions
Only the minor version number is changed, so there is no need to
keep the older versions being tested as well in the test matrix.
2018-03-21 17:19:44 +00:00
Adrian Perez de Castro 16e6feefa9
Update template.html to reflect recent changes in the code 2018-03-21 17:16:52 +00:00
gznyirfa 60c4338b96 add html class names to table cells for better css formatting options 2018-03-21 17:13:50 +00:00
Adrian Perez de Castro 9446fd7e4b
Release version 0.4.2 2017-08-19 00:31:37 +03:00
Adrian Perez de Castro 071697588c CI: Update mainline and stable Nginx versions
Previous mainline/stable versions are tested only as static builds.
2017-08-19 00:14:48 +03:00
Adrian Perez de Castro c1b1be3615 Fix sorting by file size for sizes bigger than INT_MAX
Instead of directly return the difference of the sizes from the
comparison functions, use the relational operators, as suggested by
Chris Young (thanks!).

Fixes #74
2017-08-19 00:09:41 +03:00
Nick Geoghegan b21ec45790 Fixes #72 2017-06-17 00:43:52 +03:00
Lilian Besson eb2fd247ea Update link for the 2nd theme example
The linked project (and example) was dead. Mine is not. (https://github.com/Naereen/Nginx-Fancyindex-Theme)
2017-04-26 01:38:19 +03:00
Danila Vershinin a97cc6639d Update README.rst 2017-04-22 17:49:57 +03:00
Danila Vershinin 6ffd207a56 Update requirements for CentOS 7
Adds reference to GetPageSpeed extras RPM repository and availability of fancy index dynamic module
2017-04-22 17:49:57 +03:00
Iulian Onofrei 6e2f3fbe1c Update README.rst
Add missing module loading command to the documentation
2017-01-17 12:31:35 +02:00
Adrian Perez de Castro 04936f197b
CI: Update mainline Nginx to 1.11.6 2016-12-08 15:33:17 +02:00
Adrian Perez de Castro b1182f7758
Add test case 2016-12-08 15:33:13 +02:00
Adrian Perez 57ff1a2a89 Merge pull request #62 from 0xb8/fix-61
Fix segfaults when opening directories with empty files
2016-12-08 15:12:51 +02:00
cat a551b5e3ea Fix segfaults when opening directories with empty files
Apparently ngx_sprintf does not tolerate format specifiers
not matching their corresponding argument types.
2016-12-08 15:15:59 +05:00