commit: d7fa5bb4dc5c35fcb92469ae6fefbc9f7ed6166b
parent 2fc35c69a28f4be7cddc9fbfa931575978bf914a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 9 Apr 2025 18:55:32 +0200
patches/www-servers/nginx: add meta color-scheme to autoindex
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/patches/www-servers/nginx/03 autoindex styling.patch b/patches/www-servers/nginx/03 autoindex styling.patch
@@ -1,14 +1,14 @@
diff --git a/src/http/modules/ngx_http_autoindex_module.c.old b/src/http/modules/ngx_http_autoindex_module.c
-index 18c7570..94176b4 100644
--- a/src/http/modules/ngx_http_autoindex_module.c.old
+++ b/src/http/modules/ngx_http_autoindex_module.c
-@@ -448,8 +448,9 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
+@@ -448,8 +448,10 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
;
static u_char header[] =
- "</title></head>" CRLF
- "<body>" CRLF
+ "</title>" CRLF
++ "<meta name=\"color-scheme\" content=\"dark light\" />" CRLF
+ "<style>td{font-family:monospace;}td:nth-child(3){text-align:right;}</style>" CRLF
+ "</head><body>" CRLF
"<h1>Index of "