code review by fei.hong: do add login support https modify nginx config
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -397,6 +397,12 @@ server | @@ -397,6 +397,12 @@ server | ||
397 | proxy_set_header Accept-Encoding "gzip"; | 397 | proxy_set_header Accept-Encoding "gzip"; |
398 | } | 398 | } |
399 | 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 | + } | ||
405 | + | ||
400 | location ~* \.(ico|woff|svg|eot|ttf|otf)$ { | 406 | location ~* \.(ico|woff|svg|eot|ttf|otf)$ { |
401 | expires 30d; | 407 | expires 30d; |
402 | } | 408 | } |
-
Please register or login to post a comment