2019-03-27 04:58:25 +01:00
|
|
|
# NGINX UPSTREAM CONFIGURATION - WO v3.9.5
|
2019-03-25 10:17:51 +01:00
|
|
|
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
2019-03-10 23:46:52 +01:00
|
|
|
#-------------------------------
|
|
|
|
|
# PHP 5.6
|
|
|
|
|
#-------------------------------
|
2018-11-13 21:55:59 +01:00
|
|
|
upstream php {
|
2019-03-10 23:46:52 +01:00
|
|
|
server 127.0.0.1:{{php}};
|
2018-11-13 21:55:59 +01:00
|
|
|
}
|
2019-03-06 15:55:39 +01:00
|
|
|
|
2018-11-13 21:55:59 +01:00
|
|
|
upstream debug {
|
2019-03-10 23:46:52 +01:00
|
|
|
server 127.0.0.1:{{debug}};
|
2019-03-02 20:38:31 +01:00
|
|
|
}
|
2019-03-06 15:55:39 +01:00
|
|
|
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-10 23:46:52 +01:00
|
|
|
#-------------------------------
|
|
|
|
|
# PHP 7.0
|
|
|
|
|
#-------------------------------
|
|
|
|
|
|
2019-03-06 15:55:39 +01:00
|
|
|
upstream php7 {
|
2019-03-10 23:46:52 +01:00
|
|
|
server 127.0.0.1:{{php7}};
|
|
|
|
|
}
|
|
|
|
|
upstream debug7 {
|
|
|
|
|
# Debug Pool
|
|
|
|
|
server 127.0.0.1:{{debug7}};
|
|
|
|
|
}
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-10 23:46:52 +01:00
|
|
|
|
|
|
|
|
#-------------------------------
|
|
|
|
|
# PHP 7.2
|
|
|
|
|
#-------------------------------
|
2019-03-06 15:55:39 +01:00
|
|
|
|
|
|
|
|
# PHP 7.2 upstream with load-balancing on two unix sockets
|
2019-03-02 20:38:31 +01:00
|
|
|
upstream php72 {
|
2019-03-20 02:12:13 +01:00
|
|
|
least_conn;
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-10 23:46:52 +01:00
|
|
|
server unix:/var/run/php/php72-fpm.sock;
|
2019-03-20 02:12:13 +01:00
|
|
|
server unix:/var/run/php/php72-two-fpm.sock;
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-20 02:12:13 +01:00
|
|
|
keepalive 5;
|
2019-03-02 20:38:31 +01:00
|
|
|
}
|
2019-03-06 15:55:39 +01:00
|
|
|
|
|
|
|
|
# PHP 7.2 debug
|
|
|
|
|
upstream debug72 {
|
|
|
|
|
# Debug Pool
|
|
|
|
|
server 127.0.0.1:9172;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-10 23:46:52 +01:00
|
|
|
#-------------------------------
|
|
|
|
|
# PHP 7.3
|
|
|
|
|
#-------------------------------
|
|
|
|
|
|
2019-03-06 15:55:39 +01:00
|
|
|
# PHP 7.3 upstream with load-balancing on two unix sockets
|
2019-03-02 20:38:31 +01:00
|
|
|
upstream php73 {
|
2019-03-20 03:21:39 +01:00
|
|
|
least_conn;
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-10 23:46:52 +01:00
|
|
|
server unix:/var/run/php/php73-fpm.sock;
|
2019-03-20 03:21:39 +01:00
|
|
|
server unix:/var/run/php/php73-two-fpm.sock;
|
2019-03-23 18:05:30 +01:00
|
|
|
|
2019-03-20 03:21:39 +01:00
|
|
|
keepalive 5;
|
2018-11-13 21:55:59 +01:00
|
|
|
}
|
2019-03-06 15:55:39 +01:00
|
|
|
|
|
|
|
|
# PHP 7.3 debug
|
|
|
|
|
upstream debug73 {
|
2018-11-13 21:55:59 +01:00
|
|
|
# Debug Pool
|
2019-03-10 23:46:52 +01:00
|
|
|
server 127.0.0.1:9173;
|
2018-11-13 21:55:59 +01:00
|
|
|
}
|
2019-03-10 23:46:52 +01:00
|
|
|
|
|
|
|
|
#-------------------------------
|
|
|
|
|
# Netdata
|
|
|
|
|
#-------------------------------
|
2018-11-13 21:55:59 +01:00
|
|
|
|
2019-03-06 15:55:39 +01:00
|
|
|
# Netdata Monitoring Upstream
|
|
|
|
|
upstream netdata {
|
|
|
|
|
server 127.0.0.1:19999;
|
|
|
|
|
keepalive 64;
|
|
|
|
|
}
|