Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
fa84d47c634540cf05131c16122739436a57f6db
1 parent
cd0ad9a3
code review by hf: do modify passport module support https
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
72 deletions
script/nginx/conf/vhosts/nginx.pre.yohobuy.conf.conf
template/m.yohobuy.com/actions/passport/login/index.phtml
template/m.yohobuy.com/actions/passport/login/international.phtml
template/m.yohobuy.com/actions/passport/reg/code.phtml
template/m.yohobuy.com/actions/passport/reg/index.phtml
template/m.yohobuy.com/actions/passport/reg/password.phtml
template/m.yohobuy.com/partials/layout/analysis_passport.phtml
template/m.yohobuy.com/partials/layout/footer_passport.phtml
script/nginx/conf/vhosts/nginx.pre.yohobuy.conf.conf
View file @
fa84d47
...
...
@@ -23,44 +23,54 @@ server
}
location
= /
reg
.
html
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= /
signin
.
html
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= /
login
.
html
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= /
emailback
.
html
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= /
phoneback
.
html
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= /
help
/
shareorder
.
html
{
root
/
Data
/
code
/
git
/
yohobuy
/
yohobuy
/
assets
;
...
...
@@ -70,28 +80,34 @@ server
expires
7
d
;
}
location
^~ /
passport
/
reg
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
^~ /
passport
/
login
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
^~ /
passport
/
back
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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"
;
return
301
https
://$
server_name
$
request_uri
;
# proxy_redirect off;
# proxy_pass http://yohobuy;
# 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
= / {
...
...
@@ -364,4 +380,78 @@ server
}
server
{
listen
80
;
server_name
huodong
.
m
.
yohobuy
.
com
;
root
/
Data
/
PE
/
yohobuy
/
yohobuy
/
huodong
.
m
.
yohobuy
.
com
/
public
;
location
/ {
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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
~* \.(
ico
|
woff
|
svg
|
eot
|
ttf
|
otf
)$ {
expires
30
d
;
}
location
=/
crossdomain
.
xml
{
expires
30
d
;
}
location
=/
sitemap
.
xml
{
expires
1
d
;
}
location
=/
robots
.
txt
{
expires
1
d
;
}
}
server
{
listen
443
ssl
;
server_name
login
.
m
.
yohobuy
.
com
;
root
/
Data
/
PE
/
yohobuy
/
yohobuy
/
m
.
yohobuy
.
com
/
public
;
ssl_certificate
/
home
/
hf
/
ssl
/
server
.
crt
;
ssl_certificate_key
/
home
/
hf
/
ssl
/
server
.
key
;
ssl_dhparam
/
home
/
hf
/
ssl
/
dhparams
.
pem
;
ssl_prefer_server_ciphers
on
;
ssl_protocols
TLSv1
TLSv1
.
1
TLSv1
.
2
;
ssl_ciphers
"ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:DES-CBC3-SHA"
;
ssl_session_tickets
off
;
ssl_session_cache
shared
:
SSL
:
10
m
;
# add_header Strict-Transport-Security "max-age=31536000";
# add_header X-Frame-Options deny;
# add_header X-Content-Type-Options nosniff;
location
/ {
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
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
^~ /
dist
/ {
root
/
Data
/
PE
/
yohobuy
/
yohobuy
/
static
;
expires
30
d
;
}
location
~* \.(
ico
|
woff
|
svg
|
eot
|
ttf
|
otf
)$ {
expires
30
d
;
}
location
=/
crossdomain
.
xml
{
expires
30
d
;
}
location
=/
sitemap
.
xml
{
expires
1
d
;
}
location
=/
robots
.
txt
{
expires
1
d
;
}
}
...
...
template/m.yohobuy.com/actions/passport/login/index.phtml
View file @
fa84d47
{
{>
layout/header
}
}
{
{>
layout/header
_passport
}
}
<div
class=
"login-page passport-page yoho-page"
>
{
{>
passport/header
}
}
<div
class=
"content"
>
...
...
@@ -41,4 +41,4 @@
</ul>
</div>
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer_passport
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/passport/login/international.phtml
View file @
fa84d47
{
{>
layout/header
}
}
{
{>
layout/header
_passport
}
}
<div
class=
"login-international-page passport-page yoho-page"
>
{
{>
passport/header
}
}
<div
class=
"content"
>
...
...
@@ -13,4 +13,4 @@
<span
id=
"btn-login"
class=
"btn btn-login disble row"
>登录</span>
</div>
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer_passport
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/passport/reg/code.phtml
View file @
fa84d47
{
{>
layout/header
}
}
{
{>
layout/header
_passport
}
}
<div
class=
"reg-code-page passport-page yoho-page"
>
{
{>
passport/code
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer_passport
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/passport/reg/index.phtml
View file @
fa84d47
{
{>
layout/header
}
}
{
{>
layout/header
_passport
}
}
<div
class=
"reg-page passport-page yoho-page"
>
{
{>
passport/header
}
}
<div
class=
"content"
>
...
...
@@ -11,4 +11,4 @@
<p
class=
"register-tip"
>YOHO!Family账号可登录Yoho!Buy有货、YOHO!Boys、YOHO!Girls及SHOW</p>
</div>
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer_passport
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/passport/reg/password.phtml
View file @
fa84d47
{
{>
layout/header
}
}
{
{>
layout/header
_passport
}
}
<div
class=
"reg-password-page passport-page yoho-page"
>
{
{>
passport/header
}
}
<div
class=
"content"
>
...
...
@@ -20,4 +20,4 @@ var r=b.getElementsByTagName('script')[0];r.parentNode.insertBefore(s,r);
_agtjs('init','AG_
052186
_PHCW','yohobuy.com');
_agtjs('loadEvent',
{
atsev:101,'atsrmv':
""
});
</script>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer_passport
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/analysis_passport.phtml
View file @
fa84d47
...
...
@@ -26,5 +26,4 @@
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script>
<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script>
<script src="/dist/analysis/v1/js/om_code.js"></script>
...
...
template/m.yohobuy.com/partials/layout/footer_passport.phtml
View file @
fa84d47
{
{>
layout/page_footer
}
}
{
{>
layout/download_app
}
}
{
{#if
hasWxShare
}
}
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"
http:
//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
{
{/if
}
}
{
{#if
rlsEnv
}
}
<script
src=
"/dist/myohobuy/{{version}}/lib.js"
></script>
...
...
@@ -19,17 +19,6 @@
<script
src=
"http://localhost:8000/static/js/sea.js?nowrap"
></script>
<script>seajs.config(
{
base:
'http://localhost:8000/'
}
);</script>
{
{/if
}
}
<script
type=
"text/javascript"
>
(function(w,d,s,j,f)
{
w['YohoAcquisitionObject']=f;
w[f]=function(){w[f].p=arguments;
}
;
var
a=d.createElement(s);
var
m=d.getElementsByTagName(s)
[
0
]
;
a.async=
1
;
a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','/dist/yas-jssdk/
{
{yas_version
}
}/yas.js','_yas');
</script>
{
{>
layout/use
}
}
{
{>
layout/analysis_passport
}
}
</body>
...
...
Please
register
or
login
to post a comment