v3.11.0 (#211)
- PHP 7.4 support - Improved Webp images support with Cloudflare (Issue [#95](https://github.com/WordOps/WordOps/issues/95)). Nginx will not serve webp images alternative with Cloudflare IP ranges. - Stack upgrade for adminer - Check acme.sh installation and setup acme.sh if needed before issuing certificate - Add `--ufw` to `wo stack status` - Add Nginx directive `gzip_static on;` to serve precompressed assets with Cache-Enabler or WP-Rocket. (Issue [#207](https://github.com/WordOps/WordOps/issues/207)) - Previous `--php73` & `--php73=off` flags are replaced by `--php72`, `--php73`, `--php74` to switch site's php version - phpMyAdmin updated to v4.9.2 - Adminer updated to v4.7.5 - Replace dot and dashes by underscores in database names (Issue [#206](https://github.com/WordOps/WordOps/issues/206)) - Increased database name length to 32 characters from domain name + 8 random characters - typo error in motd-news script (Issue [#204](https://github.com/WordOps/WordOps/issues/204)) - Install Nginx before ngxblocker - WordOps install/update script text color - Issue with MySQL stack on Raspbian 9/10 - Typo error (PR [#205](https://github.com/WordOps/WordOps/pull/205)) - php version in `wo debug` (PR [#209](https://github.com/WordOps/WordOps/pull/209)) - SSL certificates expiration display with shared wildcard certificates
This commit is contained in:
@@ -1,7 +1,39 @@
|
||||
# WEBP NGINX CONFIGURATION - WO v3.9.7
|
||||
# WEBP NGINX CONFIGURATION - WordOps {{release}}
|
||||
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
||||
|
||||
map $http_accept $webp_suffix {
|
||||
default "";
|
||||
"~*webp" ".webp";
|
||||
map $http_accept $webp_suffix_valid {
|
||||
default 1;
|
||||
"~*webp" 0;
|
||||
}
|
||||
|
||||
map $realip_remote_addr $webp_suffix_cf {
|
||||
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 $webp_suffix_cf$webp_suffix_valid $webp_suffix {
|
||||
default "";
|
||||
00 ".webp";
|
||||
}
|
||||
Reference in New Issue
Block a user