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

nginx.conf 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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; # 修改为自己的域名或IP地址
  40. location / {
  41. root /home/website/web; # 修改为自己的网站目录
  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://127.0.0.1:8080/; # 修改为自己的后端服务地址和端口
  51. }
  52. error_page 500 502 503 504 /50x.html;
  53. location = /50x.html {
  54. root html;
  55. }
  56. }
  57. <<<<<<< HEAD
  58. server {
  59. listen 8091;
  60. server_name localhost;
  61. location / {
  62. root /home/website/ktgmes/UI/dist;
  63. try_files $uri $uri/ /index.html;
  64. index index.html index.htm;
  65. }
  66. location /prod-api/{
  67. proxy_set_header Host $http_host;
  68. proxy_set_header X-Real-IP $remote_addr;
  69. proxy_set_header REMOTE-HOST $remote_addr;
  70. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  71. proxy_pass http://localhost:8090/;
  72. }
  73. error_page 500 502 503 504 /50x.html;
  74. location = /50x.html {
  75. root html;
  76. }
  77. }
  78. server {
  79. listen 8071;
  80. server_name localhost;
  81. location / {
  82. root /home/website/km/UI/dist;
  83. try_files $uri $uri/ /index.html;
  84. index index.html index.htm;
  85. }
  86. location /prod-api/{
  87. proxy_set_header Host $http_host;
  88. proxy_set_header X-Real-IP $remote_addr;
  89. proxy_set_header REMOTE-HOST $remote_addr;
  90. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  91. proxy_pass http://localhost:8070/;
  92. }
  93. error_page 500 502 503 504 /50x.html;
  94. location = /50x.html {
  95. root html;
  96. }
  97. }
  98. server {
  99. listen 8061;
  100. server_name localhost;
  101. location / {
  102. root /home/website/kfyy/UI;
  103. try_files $uri $uri/ /index.html;
  104. index index.html index.htm;
  105. }
  106. location /prod-api/{
  107. proxy_set_header Host $http_host;
  108. proxy_set_header X-Real-IP $remote_addr;
  109. proxy_set_header REMOTE-HOST $remote_addr;
  110. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  111. proxy_pass http://localhost:8060/;
  112. }
  113. error_page 500 502 503 504 /50x.html;
  114. location = /50x.html {
  115. root html;
  116. }
  117. }
  118. server {
  119. listen 8084;
  120. server_name localhost;
  121. location / {
  122. root /home/website/dataroom/UI;
  123. try_files $uri $uri/ /index.html;
  124. index index.html index.htm;
  125. }
  126. location /prod-api/{
  127. proxy_set_header Host $http_host;
  128. proxy_set_header X-Real-IP $remote_addr;
  129. proxy_set_header REMOTE-HOST $remote_addr;
  130. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  131. proxy_pass http://localhost:8083/;
  132. }
  133. error_page 500 502 503 504 /50x.html;
  134. location = /50x.html {
  135. root html;
  136. }
  137. }
  138. server {
  139. listen 8021;
  140. server_name localhost;
  141. location / {
  142. root /home/website/xingyun/UI;
  143. try_files $uri $uri/ /index.html;
  144. index index.html index.htm;
  145. }
  146. location /prod-api/{
  147. proxy_set_header Host $http_host;
  148. proxy_set_header X-Real-IP $remote_addr;
  149. proxy_set_header REMOTE-HOST $remote_addr;
  150. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  151. proxy_pass http://localhost:8070/;
  152. }
  153. error_page 500 502 503 504 /50x.html;
  154. location = /50x.html {
  155. root html;
  156. }
  157. }
  158. server {
  159. listen 8261;
  160. server_name localhost;
  161. location / {
  162. root /home/website/olderp/UI;
  163. try_files $uri $uri/ /index.html;
  164. index index.html index.htm;
  165. }
  166. location /prod-api/{
  167. proxy_set_header Host $http_host;
  168. proxy_set_header X-Real-IP $remote_addr;
  169. proxy_set_header REMOTE-HOST $remote_addr;
  170. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  171. proxy_pass http://localhost:8070/;
  172. }
  173. error_page 500 502 503 504 /50x.html;
  174. location = /50x.html {
  175. root html;
  176. }
  177. }
  178. server {
  179. listen 8801;
  180. server_name localhost;
  181. location / {
  182. root /home/website/ylsf/UI;
  183. try_files $uri $uri/ /index.html;
  184. index index.html index.htm;
  185. }
  186. location /prod-api/{
  187. proxy_set_header Host $http_host;
  188. proxy_set_header X-Real-IP $remote_addr;
  189. proxy_set_header REMOTE-HOST $remote_addr;
  190. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  191. proxy_pass http://localhost:8070/;
  192. }
  193. error_page 500 502 503 504 /50x.html;
  194. location = /50x.html {
  195. root html;
  196. }
  197. }
  198. server {
  199. listen 8811;
  200. server_name localhost;
  201. location / {
  202. root /home/website/xlrx/zhengzhou/web;
  203. try_files $uri $uri/ /index.html;
  204. index index.html index.htm;
  205. }
  206. location /prod-api/{
  207. proxy_set_header Host $http_host;
  208. proxy_set_header X-Real-IP $remote_addr;
  209. proxy_set_header REMOTE-HOST $remote_addr;
  210. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  211. proxy_pass http://localhost:8070/;
  212. }
  213. error_page 500 502 503 504 /50x.html;
  214. location = /50x.html {
  215. root html;
  216. }
  217. }
  218. server {
  219. listen 8821;
  220. server_name localhost;
  221. location / {
  222. root /home/website/xlrx/xinxiang/web;
  223. try_files $uri $uri/ /index.html;
  224. index index.html index.htm;
  225. }
  226. location /prod-api/{
  227. proxy_set_header Host $http_host;
  228. proxy_set_header X-Real-IP $remote_addr;
  229. proxy_set_header REMOTE-HOST $remote_addr;
  230. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  231. proxy_pass http://localhost:8070/;
  232. }
  233. error_page 500 502 503 504 /50x.html;
  234. location = /50x.html {
  235. root html;
  236. }
  237. }
  238. server {
  239. listen 8151;
  240. server_name localhost;
  241. location / {
  242. root /home/website/zhiNengZhiJian;
  243. try_files $uri $uri/ /index.html;
  244. index index.html index.htm;
  245. }
  246. location /prod-api/{
  247. proxy_set_header Host $http_host;
  248. proxy_set_header X-Real-IP $remote_addr;
  249. proxy_set_header REMOTE-HOST $remote_addr;
  250. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  251. proxy_pass http://localhost:8070/;
  252. }
  253. error_page 500 502 503 504 /50x.html;
  254. location = /50x.html {
  255. root html;
  256. }
  257. }
  258. server {
  259. listen 8221;
  260. server_name localhost;
  261. location / {
  262. root /home/website/huojia;
  263. try_files $uri $uri/ /index.html;
  264. index index.html index.htm;
  265. }
  266. location /prod-api/{
  267. proxy_set_header Host $http_host;
  268. proxy_set_header X-Real-IP $remote_addr;
  269. proxy_set_header REMOTE-HOST $remote_addr;
  270. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  271. proxy_pass http://localhost:8070/;
  272. }
  273. error_page 500 502 503 504 /50x.html;
  274. location = /50x.html {
  275. root html;
  276. }
  277. }
  278. server {
  279. listen 8321;
  280. server_name localhost;
  281. location / {
  282. root /home/website/hjzxall/web;
  283. try_files $uri $uri/ /index.html;
  284. index index.html index.htm;
  285. }
  286. location /prod-api/{
  287. proxy_set_header Host $http_host;
  288. proxy_set_header X-Real-IP $remote_addr;
  289. proxy_set_header REMOTE-HOST $remote_addr;
  290. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  291. proxy_pass http://localhost:8070/;
  292. }
  293. error_page 500 502 503 504 /50x.html;
  294. location = /50x.html {
  295. root html;
  296. }
  297. }
  298. =======
  299. >>>>>>> 8e11c447ddca117cb48dda325031fedf785a0ebe
  300. # gzip_vary on;
  301. # gzip_proxied any;
  302. # gzip_comp_level 6;
  303. # gzip_buffers 16 8k;
  304. # gzip_http_version 1.1;
  305. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  306. ##
  307. # Virtual Host Configs
  308. ##
  309. include /etc/nginx/conf.d/*.conf;
  310. include /etc/nginx/sites-enabled/*;
  311. }