- 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
107 lines
1.9 KiB
Plaintext
107 lines
1.9 KiB
Plaintext
# NGINX UPSTREAM CONFIGURATION - WordOps {{release}}
|
|
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
|
#-------------------------------
|
|
# PHP 5.6
|
|
#-------------------------------
|
|
upstream php {
|
|
server 127.0.0.1:{{php}};
|
|
}
|
|
|
|
upstream debug {
|
|
server 127.0.0.1:{{debug}};
|
|
}
|
|
|
|
|
|
#-------------------------------
|
|
# PHP 7.0
|
|
#-------------------------------
|
|
|
|
upstream php7 {
|
|
server 127.0.0.1:{{php7}};
|
|
}
|
|
upstream debug7 {
|
|
# Debug Pool
|
|
server 127.0.0.1:{{debug7}};
|
|
}
|
|
|
|
|
|
#-------------------------------
|
|
# PHP 7.2
|
|
#-------------------------------
|
|
|
|
# PHP 7.2 upstream with load-balancing on two unix sockets
|
|
upstream php72 {
|
|
least_conn;
|
|
|
|
server unix:/var/run/php/php72-fpm.sock;
|
|
server unix:/var/run/php/php72-two-fpm.sock;
|
|
|
|
keepalive 5;
|
|
}
|
|
|
|
# PHP 7.2 debug
|
|
upstream debug72 {
|
|
# Debug Pool
|
|
server 127.0.0.1:9172;
|
|
}
|
|
|
|
#-------------------------------
|
|
# PHP 7.3
|
|
#-------------------------------
|
|
|
|
# PHP 7.3 upstream with load-balancing on two unix sockets
|
|
upstream php73 {
|
|
least_conn;
|
|
|
|
server unix:/var/run/php/php73-fpm.sock;
|
|
server unix:/var/run/php/php73-two-fpm.sock;
|
|
|
|
keepalive 5;
|
|
}
|
|
|
|
# PHP 7.3 debug
|
|
upstream debug73 {
|
|
# Debug Pool
|
|
server 127.0.0.1:9173;
|
|
}
|
|
|
|
#-------------------------------
|
|
# PHP 7.4
|
|
#-------------------------------
|
|
|
|
# PHP 7.4 upstream with load-balancing on two unix sockets
|
|
upstream php74 {
|
|
least_conn;
|
|
|
|
server unix:/var/run/php/php74-fpm.sock;
|
|
server unix:/var/run/php/php74-two-fpm.sock;
|
|
|
|
keepalive 5;
|
|
}
|
|
|
|
# PHP 7.4 debug
|
|
upstream debug74 {
|
|
# Debug Pool
|
|
server 127.0.0.1:9174;
|
|
}
|
|
|
|
#-------------------------------
|
|
# Netdata
|
|
#-------------------------------
|
|
|
|
# Netdata Monitoring Upstream
|
|
upstream netdata {
|
|
server 127.0.0.1:19999;
|
|
keepalive 64;
|
|
}
|
|
|
|
#-------------------------------
|
|
# Redis
|
|
#-------------------------------
|
|
|
|
# Redis cache upstream
|
|
upstream redis {
|
|
server 127.0.0.1:6379;
|
|
keepalive 10;
|
|
}
|