From 420e9a65f2697f6345077f8b45e21530e395d1a9 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 31 Jan 2025 21:54:31 +0100 Subject: [PATCH] configuration/common: Serve nix files with mime type text/plain over nginx --- configuration/common/web.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/common/web.nix b/configuration/common/web.nix index 360d950..3cc71a6 100644 --- a/configuration/common/web.nix +++ b/configuration/common/web.nix @@ -10,6 +10,9 @@ commonHttpConfig = '' server_names_hash_bucket_size 64; + types { + text/plain nix; + } map $remote_addr $remote_addr_anon { ~(?P\d+\.\d+\.\d+)\. $ip.0; ~(?P[^:]*:[^:]*(:[^:]*)?): $ip::;