Authored by 梁志锋

改成生产环境数据

... ... @@ -23,18 +23,18 @@ class Yohobuy
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
//java API
// const API_URL = 'http://api.yoho.yohoops.org/';
// const API_URL2 = 'http://api.yoho.yohoops.org/';
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
const API_URL = 'http://api.yoho.yohoops.org/';
const API_URL2 = 'http://api.yoho.yohoops.org/';
const SERVICE_URL = 'http://service.yoho.yohoops.org/';
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const API_OLD = 'http://api2.open.yohobuy.com/';
const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// 测试环境 */
const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
/*const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';*/
/* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
... ...
... ... @@ -194,7 +194,7 @@
}
location =/product/new/index {
return 301 http://m.yohobuy.com/product/new;
return 301 https://m.yohobuy.com/product/new;
}
... ... @@ -208,22 +208,22 @@
}
location =/help.html {
return 301 http://m.yohobuy.com/home/help;
return 301 https://m.yohobuy.com/home/help;
}
location ^~ /trends_detail_ {
return 301 http://guang.m.yohobuy.com;
return 301 https://guang.m.yohobuy.com;
}
#location =/about {
# return 301 https://$host$request_uri;
# }
location =/about {
return 301 https://$host$request_uri;
}
#location =/brand/index/about{
# return 301 https://$host$request_uri;
# }
location =/brand/index/about{
return 301 https://$host$request_uri;
}
# product detail page 301 redirect to item use https
location ^~ /product/pro_ {
return 301 http://item.m.yohobuy.com$request_uri;
return 301 https://item.m.yohobuy.com$request_uri;
}
\ No newline at end of file
... ...
... ... @@ -28,14 +28,14 @@ server
proxy_set_header Accept-Encoding "gzip";
}
location =/shopping/pay/aliwapreturn {
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
# location =/shopping/pay/aliwapreturn {
# proxy_redirect off;
# proxy_pass http://yohobuy_idc;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Accept-Encoding "gzip";
# }
# others http 301 redirect https
location / {
... ... @@ -76,9 +76,9 @@ server
return 301 http://$host$request_uri;
}
location =/shopping/pay/aliwapreturn {
return 301 http://$host$request_uri;
}
#location =/shopping/pay/aliwapreturn {
# return 301 http://$host$request_uri;
#}
location / {
proxy_redirect off;
... ...