nginx.conf 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. user root;
  2. worker_processes auto;
  3. worker_cpu_affinity auto;
  4. worker_rlimit_nofile 65535;
  5. events {
  6. worker_connections 65535;
  7. accept_mutex off;
  8. }
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12. sendfile on;
  13. # log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  14. # '$status $body_bytes_sent "$http_referer" '
  15. # '"$http_user_agent" "$http_x_forwarded_for"';
  16. # access_log logs/access.log main;
  17. access_log off;
  18. underscores_in_headers on;
  19. tcp_nopush on;
  20. client_max_body_size 100m;
  21. keepalive_timeout 3600;
  22. proxy_read_timeout 3600;
  23. gzip on;
  24. gzip_min_length 1k;
  25. gzip_comp_level 4;
  26. gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
  27. gzip_vary on;
  28. # =====================================================================
  29. upstream basic {
  30. server 192.168.1.78:8000;
  31. }
  32. upstream examwork {
  33. server 192.168.1.83:8001;
  34. }
  35. upstream question-for-student {
  36. server 192.168.1.81:8008;
  37. }
  38. upstream question-for-admin {
  39. server 192.168.1.70:8008;
  40. }
  41. upstream oe-student {
  42. server 192.168.1.82:8003;
  43. server 192.168.1.84:8003;
  44. #server 192.168.1.85:8003;
  45. }
  46. upstream oe-admin-for-admin {
  47. server 192.168.1.70:8013;
  48. #server 192.168.1.72:8013;
  49. }
  50. upstream oe-admin-for-student {
  51. server 192.168.1.81:8013;
  52. }
  53. upstream oe-task {
  54. server 192.168.1.76:8002;
  55. }
  56. upstream ws {
  57. server 192.168.1.76:8010;
  58. #server 192.168.1.75:8010;
  59. }
  60. upstream marking {
  61. server 192.168.1.71:8004;
  62. }
  63. upstream logic-marking {
  64. server 192.168.1.71:8005;
  65. }
  66. upstream exchange {
  67. server 192.168.1.83:8007;
  68. }
  69. upstream bridge {
  70. server 192.168.1.78:8020;
  71. }
  72. upstream app-api {
  73. server 192.168.1.78:8090;
  74. }
  75. upstream task {
  76. server 192.168.1.71:8011;
  77. }
  78. upstream print {
  79. server 192.168.1.71:8009;
  80. }
  81. #upstream reports {
  82. # server 192.168.1.84:8015;
  83. #}
  84. # =====================================================================
  85. include sites/http80.conf;
  86. include sites/http8000.conf;
  87. include sites/http8020.conf;
  88. include sites/http8858.conf;
  89. include sites/http8007.conf;
  90. include sites/http8900.conf;
  91. include sites/http8898.conf;
  92. include sites/http8700.conf;
  93. include sites/https8878.conf;
  94. # include sites/https443.conf;
  95. include sites/block_ips.conf;
  96. }