wapi.xinyue.conf 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. server {
  2. listen 80;
  3. listen 443 ssl http2;
  4. #ssl on;
  5. ssl_certificate ssl/xinyuepp.cn.pem;
  6. ssl_certificate_key ssl/xinyuepp.cn.key;
  7. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  8. ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
  9. ssl_prefer_server_ciphers on;
  10. ssl_session_timeout 5m;
  11. add_header Access-Control-Allow-Origin *;
  12. add_header Access-Control-Allow-Headers X-Requested-With;
  13. add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_set_header Remote_addr $remote_addr;
  16. proxy_set_header X-Real_IP $remote_addr;
  17. proxy_set_header Host $host;
  18. proxy_redirect off;
  19. proxy_http_version 1.1;
  20. charset utf-8;
  21. server_name uplogapi.xinyuepp.cn;
  22. location /uplog/ {
  23. proxy_pass http://uplogapi-svc:8020;
  24. }
  25. }
  26. server {
  27. listen 80;
  28. listen 443 ssl http2;
  29. #ssl on;
  30. ssl_certificate ssl/xinyuepp.cn.pem;
  31. ssl_certificate_key ssl/xinyuepp.cn.key;
  32. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  33. ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
  34. ssl_prefer_server_ciphers on;
  35. ssl_session_timeout 5m;
  36. add_header Access-Control-Allow-Origin *;
  37. add_header Access-Control-Allow-Headers X-Requested-With;
  38. add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  39. charset utf-8;
  40. server_name region.xinyuepp.cn ;
  41. location / {
  42. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  43. proxy_set_header Remote_addr $remote_addr;
  44. proxy_set_header X-Real_IP $remote_addr;
  45. proxy_set_header Host $host;
  46. proxy_redirect off;
  47. proxy_http_version 1.1;
  48. proxy_pass http://getregioninfo-svc:8100;
  49. }
  50. location /favicon.ico {
  51. log_not_found off;
  52. access_log off;
  53. }
  54. }
  55. server {
  56. listen 80;
  57. listen 443 ssl http2;
  58. #ssl on;
  59. ssl_certificate ssl/xinyuepp.cn.pem;
  60. ssl_certificate_key ssl/xinyuepp.cn.key;
  61. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  62. ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
  63. ssl_prefer_server_ciphers on;
  64. ssl_session_timeout 5m;
  65. add_header Access-Control-Allow-Origin *;
  66. add_header Access-Control-Allow-Headers X-Requested-With;
  67. add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  68. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  69. proxy_set_header Remote_addr $remote_addr;
  70. proxy_set_header X-Real_IP $remote_addr;
  71. proxy_set_header Host $host;
  72. proxy_redirect off;
  73. proxy_http_version 1.1;
  74. charset utf-8;
  75. server_name xapi.xinyuepp.cn xapi2.xinyuepp.cn xapi.xinyuepp.cn xapi2.xinyuepp.cn;
  76. location / {
  77. proxy_pass http://wapi-svc:8094;
  78. }
  79. #location /qrcode/create {
  80. # proxy_pass http://qrcode-svc:8090;
  81. #}
  82. #location ~ ^/new_record {
  83. # proxy_pass http://record-svc:9001;
  84. #}
  85. location ~ ^/(new_msg|new_notice)/ {
  86. proxy_pass http://msg-svc:9001;
  87. }
  88. #location ~ ^/(match|welfare)/ {
  89. # proxy_pass http://match-svc:9001;
  90. #}
  91. #location ~ ^/new_feedback/ {
  92. # proxy_pass http://feedback-svc:9001;
  93. #}
  94. location ~ ^/new_user/ {
  95. proxy_pass http://user-svc:9001;
  96. }
  97. #location ~ ^/new_moston/ {
  98. ## proxy_pass http://moston-svc:9001;
  99. #}
  100. #location ~ ^/new_acquisition/ {
  101. # proxy_pass http://acquisit-svc:9001;
  102. # }
  103. location ~ ^/active/goods/ {
  104. proxy_pass http://goods-svc:9001;
  105. }
  106. location ~ ^/active/ {
  107. proxy_pass http://active-svc:9001;
  108. }
  109. #location ~ ^/applecheckmode/ {
  110. # proxy_pass http://applecheckmode-svc:9001;
  111. #}
  112. #location ~ ^/shake/ {
  113. # proxy_pass http://shake-svc:9001;
  114. #}
  115. location ~ ^/joygift/ {
  116. proxy_pass http://joygift-svc:9001;
  117. }
  118. #location ~ ^/battle/ {
  119. # proxy_pass http://battle-svc:9001;
  120. #}
  121. location ~ ^/shareaward/ {
  122. proxy_pass http://shareaward-svc:9001;
  123. }
  124. #location ~ ^/precious/ {
  125. # proxy_pass http://precious-svc:9001;
  126. #}
  127. }