code review by fei.hong: do add login support https modify nginx config
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -396,6 +396,12 @@ server | @@ -396,6 +396,12 @@ server | ||
396 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 396 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
397 | proxy_set_header Accept-Encoding "gzip"; | 397 | proxy_set_header Accept-Encoding "gzip"; |
398 | } | 398 | } |
399 | + | ||
400 | + location ^~ /dist/ { | ||
401 | + proxy_redirect off; | ||
402 | + proxy_set_header X-Real-IP $remote_addr; | ||
403 | + proxy_pass http://cdn.yoho.cn/; | ||
404 | + } | ||
399 | 405 | ||
400 | location ~* \.(ico|woff|svg|eot|ttf|otf)$ { | 406 | location ~* \.(ico|woff|svg|eot|ttf|otf)$ { |
401 | expires 30d; | 407 | expires 30d; |
-
Please register or login to post a comment