1
0

configuration/common: Serve nix files with mime type text/plain over nginx

This commit is contained in:
clerie 2025-01-31 21:54:31 +01:00
parent df96b9070d
commit 420e9a65f2

View File

@ -10,6 +10,9 @@
commonHttpConfig = '' commonHttpConfig = ''
server_names_hash_bucket_size 64; server_names_hash_bucket_size 64;
types {
text/plain nix;
}
map $remote_addr $remote_addr_anon { map $remote_addr $remote_addr_anon {
~(?P<ip>\d+\.\d+\.\d+)\. $ip.0; ~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
~(?P<ip>[^:]*:[^:]*(:[^:]*)?): $ip::; ~(?P<ip>[^:]*:[^:]*(:[^:]*)?): $ip::;