Files
WPIQ/wo/cli/templates/avif.mustache

39 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

# avif NGINX CONFIGURATION - WordOps {{release}}
2020-09-15 08:24:38 +07:00
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
map $http_accept $avif_suffix_valid {
2020-09-15 08:24:38 +07:00
default 1;
"~*avif" 0;
2020-09-15 08:24:38 +07:00
}
map $realip_remote_addr $avif_suffix_cf {
2020-09-15 08:24:38 +07:00
default 0;
103.21.244.0/22 1;
103.22.200.0/22 1;
103.31.4.0/22 1;
104.16.0.0/12 1;
108.162.192.0/18 1;
131.0.72.0/22 1;
141.101.64.0/18 1;
162.158.0.0/15 1;
172.64.0.0/13 1;
173.245.48.0/20 1;
188.114.96.0/20 1;
190.93.240.0/20 1;
197.234.240.0/22 1;
198.41.128.0/17 1;
199.27.128.0/21 1;
2400:cb00::/32 1;
2405:8100::/32 1;
2405:b500::/32 1;
2606:4700::/32 1;
2803:f800::/32 1;
2a06:98c0::/29 1;
2c0f:f248::/32 1;
}
map $avif_suffix_cf$avif_suffix_valid $avif_suffix {
default ".notexists";
00 ".avif";
2020-09-15 08:24:38 +07:00
}