|
@@ -66,71 +66,7 @@ server {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-server {
|
|
|
|
- listen 80;
|
|
|
|
- listen 443 ssl http2;
|
|
|
|
-
|
|
|
|
- #ssl on;
|
|
|
|
- ssl_certificate ssl/xinyueyouxi.com.pem;
|
|
|
|
- ssl_certificate_key ssl/xinyueyouxi.com.key;
|
|
|
|
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
- ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
|
|
|
|
- ssl_prefer_server_ciphers on;
|
|
|
|
- ssl_session_timeout 5m;
|
|
|
|
-
|
|
|
|
- add_header Access-Control-Allow-Origin *;
|
|
|
|
- add_header Access-Control-Allow-Headers X-Requested-With;
|
|
|
|
- add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
|
|
|
|
|
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
- proxy_set_header Remote_addr $remote_addr;
|
|
|
|
- proxy_set_header X-Real_IP $remote_addr;
|
|
|
|
- proxy_set_header Host $host;
|
|
|
|
- proxy_redirect off;
|
|
|
|
- proxy_http_version 1.1;
|
|
|
|
-
|
|
|
|
- charset utf-8;
|
|
|
|
-
|
|
|
|
- server_name xapi2.yukeonline.com;
|
|
|
|
-
|
|
|
|
- location / {
|
|
|
|
- proxy_pass http://wapi-svc:8094;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- location /qrcode/create {
|
|
|
|
- proxy_pass http://qrcode-svc:8090;
|
|
|
|
- }
|
|
|
|
- location ~ ^/new_record {
|
|
|
|
- proxy_pass http://record-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/(new_msg|new_notice)/ {
|
|
|
|
- proxy_pass http://msg-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/(match|welfare)/ {
|
|
|
|
- proxy_pass http://match-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/new_feedback/ {
|
|
|
|
- proxy_pass http://feedback-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/new_user/ {
|
|
|
|
- proxy_pass http://user-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/new_moston/ {
|
|
|
|
- proxy_pass http://moston-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/new_acquisition/ {
|
|
|
|
- proxy_pass http://acquisit-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/active/ {
|
|
|
|
- proxy_pass http://active-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/applecheckmode/ {
|
|
|
|
- proxy_pass http://applecheckmode-svc:9001;
|
|
|
|
- }
|
|
|
|
- location ~ ^/shake/ {
|
|
|
|
- proxy_pass http://shake-svc:9001;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
server {
|
|
server {
|
|
listen 80;
|
|
listen 80;
|
|
listen 443 ssl http2;
|
|
listen 443 ssl http2;
|
|
@@ -156,7 +92,7 @@ server {
|
|
|
|
|
|
charset utf-8;
|
|
charset utf-8;
|
|
|
|
|
|
- server_name xapi.yukeonline.com;
|
|
|
|
|
|
+ server_name xapi.yukeonline.com xapi2.yukeonline.com;
|
|
|
|
|
|
location / {
|
|
location / {
|
|
proxy_pass http://wapi-svc:8094;
|
|
proxy_pass http://wapi-svc:8094;
|