- 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
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Redis NGINX CONFIGURATION - WordOps {{release}}
|
|
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
|
# $skip_cache variable set in /etc/nginx/conf.d/map-wp.conf
|
|
|
|
# Use cached or actual file if they exists, Otherwise pass request to WordPress
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
|
|
location /redis-fetch {
|
|
internal ;
|
|
set $redis_key $args;
|
|
redis_pass redis;
|
|
}
|
|
location /redis-store {
|
|
internal ;
|
|
set_unescape_uri $key $arg_key ;
|
|
redis2_query set $key $echo_request_body;
|
|
redis2_query expire $key 14400;
|
|
redis2_pass redis;
|
|
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
set $key "nginx-cache:$scheme$request_method$host$request_uri";
|
|
try_files $uri =404;
|
|
|
|
srcache_fetch_skip $skip_cache;
|
|
srcache_store_skip $skip_cache;
|
|
|
|
srcache_response_cache_control off;
|
|
|
|
set_escape_uri $escaped_key $key;
|
|
|
|
srcache_fetch GET /redis-fetch $key;
|
|
srcache_store PUT /redis-store key=$escaped_key;
|
|
|
|
more_set_headers 'X-SRCache-Fetch-Status $srcache_fetch_status';
|
|
more_set_headers 'X-SRCache-Store-Status $srcache_store_status';
|
|
|
|
include fastcgi_params;
|
|
fastcgi_pass {{upstream}};
|
|
}
|