You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
1.6 KiB

  1. # Common upstream settings
  2. ##################
  3. # php5.6-fpm
  4. ##################
  5. upstream php {
  6. server 127.0.0.1:9000;
  7. }
  8. upstream debug {
  9. # Debug Pool
  10. server 127.0.0.1:9001;
  11. }
  12. ##################
  13. # php7.0-fpm
  14. ##################
  15. # TCP/IP on loopback interface
  16. upstream php7 {
  17. server 127.0.0.1:9070;
  18. }
  19. upstream debug7 {
  20. server 127.0.0.1:9170;
  21. }
  22. # load-balancing on unix socket
  23. upstream php7-sock {
  24. least_conn;
  25. server unix:/var/run/php/php70-fpm.sock;
  26. server unix:/var/run/php/php70-two-fpm.sock;
  27. keepalive 5;
  28. }
  29. ##################
  30. # php7.1-fpm
  31. ##################
  32. # TCP/IP on loopback interface
  33. upstream php71 {
  34. server 127.0.0.1:9080;
  35. }
  36. # load-balancing on unix socket
  37. upstream php71-sock {
  38. least_conn;
  39. server unix:/var/run/php/php71-fpm.sock;
  40. server unix:/var/run/php/php71-two-fpm.sock;
  41. keepalive 5;
  42. }
  43. ##################
  44. # php7.2-fpm
  45. ##################
  46. # TCP/IP on loopback interface
  47. upstream php72 {
  48. server 127.0.0.1:9090;
  49. }
  50. # load-balancing on unix socket
  51. upstream php72-sock {
  52. least_conn;
  53. server unix:/var/run/php/php72-fpm.sock;
  54. server unix:/var/run/php/php72-two-fpm.sock;
  55. keepalive 5;
  56. }
  57. ##################
  58. # php7.3-fpm
  59. ##################
  60. # TCP/IP on loopback interface
  61. upstream php73 {
  62. server 127.0.0.1:9090;
  63. }
  64. # load-balancing on unix socket
  65. upstream php73-sock {
  66. least_conn;
  67. server unix:/var/run/php/php73-fpm.sock;
  68. server unix:/var/run/php/php73-two-fpm.sock;
  69. keepalive 5;
  70. }
  71. ##################
  72. # redis
  73. ##################
  74. upstream redis {
  75. server 127.0.0.1:6379;
  76. keepalive 10;
  77. }
  78. ##################
  79. # netdata
  80. ##################
  81. upstream netdata {
  82. server 127.0.0.1:19999;
  83. keepalive 64;
  84. }