It looks like the only way to that is to edit the source code. The following #define in src/http/modules/ngx_http_autoindex_module.c have to be changed:
#define NGX_HTTP_AUTOINDEX_NAME_LEN 50
Maybe something else needs to be tweaked too, but that's what I saw at first glance.
It looks like the only way to that is to edit the source code. The following #define in src/http/modules/ngx_http_autoindex_module.c have to be changed:
Maybe something else needs to be tweaked too, but that's what I saw at first glance.
I am no expert, but in nginx one can do this:
Where 255, obviously, is a max length to trim to you want to achieve.
Works fine in nginx 1.18.0 on Debian with
libnginx-mod-http-fancyindex
More docs: https://github.com/aperezdc/ngx-fancyindex#fancyindex-name-length
i use Fancy Index module (ubuntu: libnginx-mod-http-fancyindex) and specify simple file with this js snippet.