nginx.conf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. etag off;
  11. add_header Cache-Control max-age=3600;
  12. include mime.types;
  13. default_type application/octet-stream;
  14. sendfile on;
  15. # log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  16. # '$status $body_bytes_sent "$http_referer" '
  17. # '"$http_user_agent" "$http_x_forwarded_for"';
  18. # access_log logs/access.log main;
  19. access_log off;
  20. underscores_in_headers on;
  21. tcp_nopush on;
  22. client_max_body_size 100m;
  23. keepalive_timeout 3600;
  24. proxy_read_timeout 3600;
  25. gzip on;
  26. gzip_min_length 1k;
  27. gzip_comp_level 4;
  28. 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;
  29. gzip_vary on;
  30. # =====================================================================
  31. upstream basic {
  32. server 192.168.1.78:8000;
  33. }
  34. upstream examwork {
  35. server 192.168.1.83:8001;
  36. }
  37. upstream question-for-student {
  38. server 192.168.1.81:8008;
  39. }
  40. upstream question-for-admin {
  41. server 192.168.1.70:8008;
  42. }
  43. upstream oe-student {
  44. server 192.168.1.84:8003;
  45. server 192.168.1.233:8003;
  46. #server 192.168.1.234:8003;
  47. #server 192.168.1.235:8003;
  48. }
  49. upstream oe-admin-for-admin {
  50. server 192.168.1.70:8013;
  51. #server 192.168.1.72:8013;
  52. }
  53. upstream oe-admin-for-student {
  54. server 192.168.1.81:8013;
  55. }
  56. upstream oe-task {
  57. server 192.168.1.76:8002;
  58. }
  59. upstream ws {
  60. server 192.168.1.82:8010;
  61. #server 192.168.1.75:8010;
  62. }
  63. upstream marking {
  64. server 192.168.1.71:8004;
  65. }
  66. upstream logic-marking {
  67. server 192.168.1.71:8005;
  68. }
  69. upstream exchange {
  70. server 192.168.1.71:8007;
  71. }
  72. upstream bridge {
  73. server 192.168.1.71:8030;
  74. }
  75. upstream app-api {
  76. server 192.168.1.71:8090;
  77. }
  78. upstream task {
  79. server 192.168.1.71:8011;
  80. }
  81. upstream print {
  82. server 192.168.1.71:8009;
  83. }
  84. #upstream reports {
  85. # server 192.168.1.71:8015;
  86. #}
  87. # =====================================================================
  88. include sites/http80.conf;
  89. include sites/http80-v3.conf;
  90. include sites/http8000.conf;
  91. include sites/http8020.conf;
  92. include sites/http8858.conf;
  93. include sites/http8007.conf;
  94. include sites/http8900.conf;
  95. include sites/http8898.conf;
  96. include sites/http8700.conf;
  97. include sites/https8878.conf;
  98. # include sites/https443.conf;
  99. include sites/block_ips.conf;
  100. include sites/n.conf;
  101. }