From 9c436b62f2a02348196340b87fd7d91a7d569037 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 12 Jul 2025 12:44:57 -0300 Subject: system.scm: Add custom MIME types * src/guix/system.scm (nginx-server-configuration) : Add custom MIME types. --- src/guix/system.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src') diff --git a/src/guix/system.scm b/src/guix/system.scm index 8aac00a..8105e95 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -167,6 +167,23 @@ charset utf-8; autoindex on; add_header Strict-Transport-Security 'max-age=31536000; includeSubdomains' always; + types { + text/html html; + text/css css; + text/javascript mjs; + text/xml xml; + text/plain txt; + application/atom+xml atom; + application/gzip gz; + application/pdf pdf; + application/x-bittorrent torrent; + image/vnd.microsoft.icon ico; + image/png png; + image/svg+xml svg; + audio/flac flac; + audio/ogg ogg; + video/webm webm; + } "#))))))) (service cgit-service-type q:cgit-pre-configuration) (service pkg:syskeep-service-type -- cgit v1.2.3