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

223 lines
4.2 KiB
Plaintext
Raw Permalink Normal View History

# NGINX UPSTREAM CONFIGURATION - WordOps {{release}}
2019-10-18 21:19:16 +02:00
# 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;
2019-10-18 21:19:16 +02:00
}
#-------------------------------
# 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
2019-10-18 21:19:16 +02:00
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;
}
2022-01-25 15:49:11 +01:00
#-------------------------------
# PHP 8.0
#-------------------------------
# PHP 8.0 upstream with load-balancing on two unix sockets
upstream php80 {
least_conn;
server unix:/var/run/php/php80-fpm.sock;
server unix:/var/run/php/php80-two-fpm.sock;
keepalive 5;
}
# PHP 8.0 debug
upstream debug80 {
# Debug Pool
server 127.0.0.1:9175;
}
#-------------------------------
# PHP 8.1
#-------------------------------
# PHP 8.1 upstream with load-balancing on two unix sockets
upstream php81 {
least_conn;
server unix:/var/run/php/php81-fpm.sock;
server unix:/var/run/php/php81-two-fpm.sock;
keepalive 5;
}
# PHP 8.1 debug
upstream debug81 {
# Debug Pool
server 127.0.0.1:9176;
}
2022-12-10 10:37:20 -03:00
#-------------------------------
# PHP 8.2
#-------------------------------
# PHP 8.2 upstream with load-balancing on two unix sockets
upstream php82 {
least_conn;
server unix:/var/run/php/php82-fpm.sock;
server unix:/var/run/php/php82-two-fpm.sock;
keepalive 5;
}
# PHP 8.2 debug
upstream debug82 {
# Debug Pool
server 127.0.0.1:9177;
}
2023-11-23 21:33:09 +01:00
#-------------------------------
# PHP 8.3
#-------------------------------
# PHP 8.3 upstream with load-balancing on two unix sockets
upstream php83 {
least_conn;
server unix:/var/run/php/php83-fpm.sock;
server unix:/var/run/php/php83-two-fpm.sock;
keepalive 5;
}
# PHP 8.3 debug
upstream debug83 {
# Debug Pool
server 127.0.0.1:9178;
}
2024-12-03 14:08:19 +01:00
#-------------------------------
# PHP 8.4
#-------------------------------
# PHP 8.4 upstream with load-balancing on two unix sockets
upstream php84 {
least_conn;
server unix:/var/run/php/php84-fpm.sock;
server unix:/var/run/php/php84-two-fpm.sock;
keepalive 5;
}
# PHP 8.4 debug
2024-12-03 16:06:49 +01:00
upstream debug84 {
2024-12-03 14:08:19 +01:00
# Debug Pool
server 127.0.0.1:9179;
}
2019-10-18 21:19:16 +02:00
#-------------------------------
# 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;
}
2020-05-14 13:06:02 +02:00
#-------------------------------
# Multi PHP
#-------------------------------
# Multi PHP upstream for WordOps backend
upstream multiphp {
server unix:/var/run/php/php73-fpm.sock;
server unix:/var/run/php/php74-fpm.sock;
server unix:/var/run/php/php72-fpm.sock;
2022-02-16 14:35:58 +01:00
server unix:/var/run/php/php80-fpm.sock;
server unix:/var/run/php/php81-fpm.sock;
2022-12-10 10:37:20 -03:00
server unix:/var/run/php/php82-fpm.sock;
2023-11-23 21:33:09 +01:00
server unix:/var/run/php/php83-fpm.sock;
2024-12-03 14:08:19 +01:00
server unix:/var/run/php/php84-fpm.sock;
2022-12-10 10:37:20 -03:00
}