nginx.config 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. worker_processes auto;
  2. worker_rlimit_nofile 51200;
  3. events
  4. {
  5. worker_connections 51200;
  6. multi_accept on;
  7. }
  8. http {
  9. include mime.types;
  10. #include luawaf.conf;
  11. include proxy.conf;
  12. default_type application/octet-stream;
  13. server_names_hash_bucket_size 512;
  14. client_header_buffer_size 32k;
  15. large_client_header_buffers 4 32k;
  16. client_max_body_size 50m;
  17. sendfile on;
  18. tcp_nopush on;
  19. keepalive_timeout 60;
  20. tcp_nodelay on;
  21. fastcgi_connect_timeout 300;
  22. fastcgi_send_timeout 300;
  23. fastcgi_read_timeout 300;
  24. fastcgi_buffer_size 64k;
  25. fastcgi_buffers 4 64k;
  26. fastcgi_busy_buffers_size 128k;
  27. fastcgi_temp_file_write_size 256k;
  28. fastcgi_intercept_errors on;
  29. gzip on;
  30. gzip_min_length 1k;
  31. gzip_buffers 4 16k;
  32. gzip_http_version 1.1;
  33. gzip_comp_level 2;
  34. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
  35. gzip_vary on;
  36. gzip_proxied expired no-cache no-store private auth;
  37. gzip_disable "MSIE [1-6]\.";
  38. limit_conn_zone $binary_remote_addr zone=perip:10m;
  39. limit_conn_zone $server_name zone=perserver:10m;
  40. server_tokens off;
  41. access_log off;
  42. server {
  43. listen 80;
  44. server_name localhost;
  45. #charset koi8-r;
  46. #access_log logs/host.access.log main;
  47. location / {
  48. root html;
  49. index index.html index.htm;
  50. }
  51. location /nginx_status {
  52. allow 127.0.0.1;
  53. deny all;
  54. stub_status on;
  55. access_log off;
  56. }
  57. }
  58. server {
  59. listen 80;
  60. server_name admin.fbylive.com;
  61. proxy_connect_timeout 300;
  62. proxy_send_timeout 300;
  63. proxy_read_timeout 300;
  64. location / {
  65. root C:\Tools\ui\adminUI;
  66. try_files $uri $uri/ /index.html;
  67. index index.html index.htm;
  68. }
  69. location /prod-api/ {
  70. proxy_set_header Host $http_host;
  71. proxy_set_header X-Real-IP $remote_addr;
  72. proxy_set_header REMOTE_HOST $remote_addr;
  73. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  74. proxy_set_header X-Forwarded-Proto $scheme;
  75. proxy_set_header X-NginX-Proxy true;
  76. proxy_pass http://localhost:7011/;
  77. client_body_timeout 500s;
  78. client_max_body_size 200m;
  79. proxy_connect_timeout 1800s;
  80. proxy_send_timeout 1800s;
  81. proxy_read_timeout 1800s;
  82. send_timeout 1800s;
  83. }
  84. }
  85. server {
  86. listen 80;
  87. server_name company.fbylive.com;
  88. proxy_connect_timeout 300;
  89. proxy_send_timeout 300;
  90. proxy_read_timeout 300;
  91. location / {
  92. root C:\Tools\ui\companyUI;
  93. try_files $uri $uri/ /index.html;
  94. index index.html index.htm;
  95. }
  96. location /prod-api/ {
  97. proxy_set_header Host $http_host;
  98. proxy_set_header X-Real-IP $remote_addr;
  99. proxy_set_header REMOTE_HOST $remote_addr;
  100. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  101. proxy_set_header X-Forwarded-Proto $scheme;
  102. proxy_set_header X-NginX-Proxy true;
  103. proxy_pass http://localhost:7012/;
  104. client_body_timeout 500s;
  105. client_max_body_size 200m;
  106. proxy_connect_timeout 1800s;
  107. proxy_send_timeout 1800s;
  108. proxy_read_timeout 1800s;
  109. send_timeout 1800s;
  110. }
  111. }
  112. server {
  113. listen 80;
  114. server_name scrm.fbylive.com;
  115. location / {
  116. proxy_pass http://localhost:8006/;
  117. proxy_set_header Host $host;
  118. proxy_set_header X-Real-IP $remote_addr;
  119. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  120. proxy_set_header X-Forwarded-Proto $scheme;
  121. }
  122. location /WW_verify_CquJP69UyLfoMwTY.txt {
  123. alias C:\\Tools\\ui\\WW_verify_CquJP69UyLfoMwTY.txt;
  124. }
  125. location /qwh5/ {
  126. alias C:\\Tools\\ui\\qwh5\\;
  127. try_files $uri $uri/ /qwh5/index.html;
  128. }
  129. location /apis/ {
  130. proxy_pass http://localhost:7771/;
  131. proxy_set_header Host $host;
  132. proxy_set_header X-Real-IP $remote_addr;
  133. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  134. proxy_set_header X-Forwarded-Proto $scheme;
  135. }
  136. }
  137. server {
  138. listen 80;
  139. server_name scrm.hyljcourse.com;
  140. location / {
  141. proxy_pass http://localhost:8006/;
  142. proxy_set_header Host $host;
  143. proxy_set_header X-Real-IP $remote_addr;
  144. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  145. proxy_set_header X-Forwarded-Proto $scheme;
  146. }
  147. location /WW_verify_CquJP69UyLfoMwTY.txt {
  148. alias C:\\Tools\\ui\\WW_verify_CquJP69UyLfoMwTY.txt;
  149. }
  150. location /qwh5 {
  151. alias C:\\Tools\\ui\\qwh5UI\\;
  152. try_files $uri $uri/ /qwh5/index.html;
  153. }
  154. location /apis/ {
  155. proxy_pass http://localhost:7771/;
  156. proxy_set_header Host $host;
  157. proxy_set_header X-Real-IP $remote_addr;
  158. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  159. proxy_set_header X-Forwarded-Proto $scheme;
  160. }
  161. }
  162. server {
  163. listen 80;
  164. server_name tool.fbylive.com;
  165. location / {
  166. proxy_pass http://localhost:7771/;
  167. proxy_set_header Host $host;
  168. proxy_set_header X-Real-IP $remote_addr;
  169. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  170. proxy_set_header X-Forwarded-Proto $scheme;
  171. }
  172. }
  173. server {
  174. listen 80;
  175. server_name userapp.fbylive.com;
  176. location / {
  177. proxy_pass http://localhost:7005/;
  178. proxy_set_header Host $host;
  179. proxy_set_header X-Real-IP $remote_addr;
  180. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  181. proxy_set_header X-Forwarded-Proto $scheme;
  182. }
  183. }
  184. server {
  185. listen 80;
  186. server_name h5.fbylive.com;
  187. location / {
  188. root C:\Tools\ui\companyAppUI;
  189. index index.html index.htm;
  190. try_files $uri $uri/ /index.html;
  191. }
  192. location /courseH5 {
  193. alias C:\Tools\ui\courseh5UI;
  194. try_files $uri $uri/ /courseH5/index.html; # 回退到index.html
  195. }
  196. location /prod-api/ {
  197. proxy_pass http://localhost:7015/;
  198. proxy_set_header Host $host;
  199. proxy_set_header X-Real-IP $remote_addr;
  200. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  201. proxy_set_header X-Forwarded-Proto $scheme;
  202. }
  203. location /MP_verify_W5rBtdyb9f8ytWWG.txt {
  204. alias C:\\Tools\\ui\\MP_verify_W5rBtdyb9f8ytWWG.txt;
  205. }
  206. }
  207. include vhost/*.conf;
  208. #加载vhost目录下的虚拟主机配置文件
  209. }
  210. stream {
  211. # TCP/UDP 代理配置
  212. server {
  213. listen 2345;
  214. proxy_pass 192.168.0.74:3306;
  215. }
  216. }