configuration/common: Serve nix files with mime type text/plain over nginx
This commit is contained in:
parent
df96b9070d
commit
420e9a65f2
@ -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::;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user