aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-07-12 12:44:57 -0300
committerEuAndreh <eu@euandre.org>2025-07-12 19:04:55 -0300
commit9c436b62f2a02348196340b87fd7d91a7d569037 (patch)
tree747e9a053da04d9fac1c29ad31b5eecae49631c8
parentsrc/guix/system.scm: Add config for having pijul on the server (diff)
downloadtoph-main.tar.gz
toph-main.tar.xz
system.scm: Add custom MIME typesHEADmain
* src/guix/system.scm (nginx-server-configuration) <raw-content>: Add custom MIME types.
Diffstat (limited to '')
-rw-r--r--src/guix/system.scm17
1 files changed, 17 insertions, 0 deletions
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