整合后的呼叫中心项目前端

nginx.conf 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5. events {
  6. worker_connections 768;
  7. # multi_accept on;
  8. }
  9. http {
  10. ##
  11. # Basic Settings
  12. ##
  13. sendfile on;
  14. tcp_nopush on;
  15. tcp_nodelay on;
  16. keepalive_timeout 65;
  17. types_hash_max_size 2048;
  18. # server_tokens off;
  19. # server_names_hash_bucket_size 64;
  20. # server_name_in_redirect off;
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23. ##
  24. # SSL Settings
  25. ##
  26. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  27. ssl_prefer_server_ciphers on;
  28. ##
  29. # Logging Settings
  30. ##
  31. access_log /var/log/nginx/access.log;
  32. error_log /var/log/nginx/error.log;
  33. ##
  34. # Gzip Settings
  35. ##
  36. gzip on;
  37. server {
  38. listen 8081;
  39. server_name 12.34.56.78;
  40. location / {
  41. root /home/nuoyi/dist;
  42. try_files $uri $uri/ /index.html;
  43. index index.html index.htm;
  44. }
  45. location /prod-api/{
  46. proxy_set_header Host $http_host;
  47. proxy_set_header X-Real-IP $remote_addr;
  48. proxy_set_header REMOTE-HOST $remote_addr;
  49. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  50. proxy_pass http://localhost:8080/;
  51. }
  52. error_page 500 502 503 504 /50x.html;
  53. location = /50x.html {
  54. root html;
  55. }
  56. }
  57. server {
  58. listen 8111;
  59. server_name 12.34.56.78;
  60. location / {
  61. root /home/website/zxdt/web;
  62. try_files $uri $uri/ /index.html;
  63. index index.html index.htm;
  64. }
  65. location /wav/{
  66. proxy_set_header Host $http_host;
  67. proxy_set_header X-Real-IP $remote_addr;
  68. proxy_set_header REMOTE-HOST $remote_addr;
  69. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  70. proxy_pass http://192.168.1.10:9000/;
  71. }
  72. error_page 500 502 503 504 /50x.html;
  73. location = /50x.html {
  74. root html;
  75. }
  76. }
  77. server {
  78. listen 8011;
  79. server_name 12.34.56.78;
  80. location / {
  81. root /home/website/zxkf/UI;
  82. try_files $uri $uri/ /index.html;
  83. index index.html index.htm;
  84. }
  85. location /wav/{
  86. proxy_set_header Host $http_host;
  87. proxy_set_header X-Real-IP $remote_addr;
  88. proxy_set_header REMOTE-HOST $remote_addr;
  89. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  90. proxy_pass http://192.168.1.10:9000/;
  91. }
  92. error_page 500 502 503 504 /50x.html;
  93. location = /50x.html {
  94. root html;
  95. }
  96. }
  97. server {
  98. listen 9001;
  99. server_name 12.34.56.78;
  100. location / {
  101. root /home/nuoyi/distFlow;
  102. try_files $uri $uri/ /index.html;
  103. index index.html index.htm;
  104. }
  105. location /prod-api/{
  106. proxy_set_header Host $http_host;
  107. proxy_set_header X-Real-IP $remote_addr;
  108. proxy_set_header REMOTE-HOST $remote_addr;
  109. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  110. proxy_pass http://localhost:8080/;
  111. }
  112. error_page 500 502 503 504 /50x.html;
  113. location = /50x.html {
  114. root html;
  115. }
  116. }
  117. server {
  118. listen 8091;
  119. server_name localhost;
  120. location / {
  121. root /home/website/ktgmes/UI/dist;
  122. try_files $uri $uri/ /index.html;
  123. index index.html index.htm;
  124. }
  125. location /prod-api/{
  126. proxy_set_header Host $http_host;
  127. proxy_set_header X-Real-IP $remote_addr;
  128. proxy_set_header REMOTE-HOST $remote_addr;
  129. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  130. proxy_pass http://localhost:8090/;
  131. }
  132. error_page 500 502 503 504 /50x.html;
  133. location = /50x.html {
  134. root html;
  135. }
  136. }
  137. server {
  138. listen 8071;
  139. server_name localhost;
  140. location / {
  141. root /home/website/km/UI/dist;
  142. try_files $uri $uri/ /index.html;
  143. index index.html index.htm;
  144. }
  145. location /prod-api/{
  146. proxy_set_header Host $http_host;
  147. proxy_set_header X-Real-IP $remote_addr;
  148. proxy_set_header REMOTE-HOST $remote_addr;
  149. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  150. proxy_pass http://localhost:8070/;
  151. }
  152. error_page 500 502 503 504 /50x.html;
  153. location = /50x.html {
  154. root html;
  155. }
  156. }
  157. server {
  158. listen 8061;
  159. server_name localhost;
  160. location / {
  161. root /home/website/kfyy/UI;
  162. try_files $uri $uri/ /index.html;
  163. index index.html index.htm;
  164. }
  165. location /prod-api/{
  166. proxy_set_header Host $http_host;
  167. proxy_set_header X-Real-IP $remote_addr;
  168. proxy_set_header REMOTE-HOST $remote_addr;
  169. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  170. proxy_pass http://localhost:8060/;
  171. }
  172. error_page 500 502 503 504 /50x.html;
  173. location = /50x.html {
  174. root html;
  175. }
  176. }
  177. server {
  178. listen 8084;
  179. server_name localhost;
  180. location / {
  181. root /home/website/dataroom/UI;
  182. try_files $uri $uri/ /index.html;
  183. index index.html index.htm;
  184. }
  185. location /prod-api/{
  186. proxy_set_header Host $http_host;
  187. proxy_set_header X-Real-IP $remote_addr;
  188. proxy_set_header REMOTE-HOST $remote_addr;
  189. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  190. proxy_pass http://localhost:8083/;
  191. }
  192. error_page 500 502 503 504 /50x.html;
  193. location = /50x.html {
  194. root html;
  195. }
  196. }
  197. server {
  198. listen 8021;
  199. server_name localhost;
  200. location / {
  201. root /home/website/xingyun/UI;
  202. try_files $uri $uri/ /index.html;
  203. index index.html index.htm;
  204. }
  205. location /prod-api/{
  206. proxy_set_header Host $http_host;
  207. proxy_set_header X-Real-IP $remote_addr;
  208. proxy_set_header REMOTE-HOST $remote_addr;
  209. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  210. proxy_pass http://localhost:8070/;
  211. }
  212. error_page 500 502 503 504 /50x.html;
  213. location = /50x.html {
  214. root html;
  215. }
  216. }
  217. server {
  218. listen 8261;
  219. server_name localhost;
  220. location / {
  221. root /home/website/olderp/UI;
  222. try_files $uri $uri/ /index.html;
  223. index index.html index.htm;
  224. }
  225. location /prod-api/{
  226. proxy_set_header Host $http_host;
  227. proxy_set_header X-Real-IP $remote_addr;
  228. proxy_set_header REMOTE-HOST $remote_addr;
  229. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  230. proxy_pass http://localhost:8070/;
  231. }
  232. error_page 500 502 503 504 /50x.html;
  233. location = /50x.html {
  234. root html;
  235. }
  236. }
  237. server {
  238. listen 8801;
  239. server_name localhost;
  240. location / {
  241. root /home/website/ylsf/UI;
  242. try_files $uri $uri/ /index.html;
  243. index index.html index.htm;
  244. }
  245. location /prod-api/{
  246. proxy_set_header Host $http_host;
  247. proxy_set_header X-Real-IP $remote_addr;
  248. proxy_set_header REMOTE-HOST $remote_addr;
  249. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  250. proxy_pass http://localhost:8070/;
  251. }
  252. error_page 500 502 503 504 /50x.html;
  253. location = /50x.html {
  254. root html;
  255. }
  256. }
  257. server {
  258. listen 8811;
  259. server_name localhost;
  260. location / {
  261. root /home/website/xlrx/zhengzhou/web;
  262. try_files $uri $uri/ /index.html;
  263. index index.html index.htm;
  264. }
  265. location /prod-api/{
  266. proxy_set_header Host $http_host;
  267. proxy_set_header X-Real-IP $remote_addr;
  268. proxy_set_header REMOTE-HOST $remote_addr;
  269. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  270. proxy_pass http://localhost:8070/;
  271. }
  272. error_page 500 502 503 504 /50x.html;
  273. location = /50x.html {
  274. root html;
  275. }
  276. }
  277. server {
  278. listen 8821;
  279. server_name localhost;
  280. location / {
  281. root /home/website/xlrx/xinxiang/web;
  282. try_files $uri $uri/ /index.html;
  283. index index.html index.htm;
  284. }
  285. location /prod-api/{
  286. proxy_set_header Host $http_host;
  287. proxy_set_header X-Real-IP $remote_addr;
  288. proxy_set_header REMOTE-HOST $remote_addr;
  289. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  290. proxy_pass http://localhost:8070/;
  291. }
  292. error_page 500 502 503 504 /50x.html;
  293. location = /50x.html {
  294. root html;
  295. }
  296. }
  297. server {
  298. listen 8151;
  299. server_name localhost;
  300. location / {
  301. root /home/website/zhiNengZhiJian;
  302. try_files $uri $uri/ /index.html;
  303. index index.html index.htm;
  304. }
  305. location /prod-api/{
  306. proxy_set_header Host $http_host;
  307. proxy_set_header X-Real-IP $remote_addr;
  308. proxy_set_header REMOTE-HOST $remote_addr;
  309. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  310. proxy_pass http://localhost:8070/;
  311. }
  312. error_page 500 502 503 504 /50x.html;
  313. location = /50x.html {
  314. root html;
  315. }
  316. }
  317. server {
  318. listen 8221;
  319. server_name localhost;
  320. location / {
  321. root /home/website/huojia;
  322. try_files $uri $uri/ /index.html;
  323. index index.html index.htm;
  324. }
  325. location /prod-api/{
  326. proxy_set_header Host $http_host;
  327. proxy_set_header X-Real-IP $remote_addr;
  328. proxy_set_header REMOTE-HOST $remote_addr;
  329. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  330. proxy_pass http://localhost:8070/;
  331. }
  332. error_page 500 502 503 504 /50x.html;
  333. location = /50x.html {
  334. root html;
  335. }
  336. }
  337. server {
  338. listen 8321;
  339. server_name localhost;
  340. location / {
  341. root /home/website/hjzxall/web;
  342. try_files $uri $uri/ /index.html;
  343. index index.html index.htm;
  344. }
  345. location /prod-api/{
  346. proxy_set_header Host $http_host;
  347. proxy_set_header X-Real-IP $remote_addr;
  348. proxy_set_header REMOTE-HOST $remote_addr;
  349. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  350. proxy_pass http://localhost:8070/;
  351. }
  352. error_page 500 502 503 504 /50x.html;
  353. location = /50x.html {
  354. root html;
  355. }
  356. }
  357. # gzip_vary on;
  358. # gzip_proxied any;
  359. # gzip_comp_level 6;
  360. # gzip_buffers 16 8k;
  361. # gzip_http_version 1.1;
  362. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  363. ##
  364. # Virtual Host Configs
  365. ##
  366. include /etc/nginx/conf.d/*.conf;
  367. include /etc/nginx/sites-enabled/*;
  368. }
  369. #mail {
  370. # # See sample authentication script at:
  371. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  372. #
  373. # # auth_http localhost/auth.php;
  374. # # pop3_capabilities "TOP" "USER";
  375. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  376. #
  377. # server {
  378. # listen localhost:110;
  379. # protocol pop3;
  380. # proxy on;
  381. # }
  382. #
  383. # server {
  384. # listen localhost:143;
  385. # protocol imap;
  386. # proxy on;
  387. # }
  388. #}