current position:Home>Hexo/Github. IO configure Tencent cloud CDN

Hexo/Github. IO configure Tencent cloud CDN

2022-04-29 04:21:30Xia ordinary


My brother Xin wrote ! By the way, he helped me set up a new blog https://xpt.hatake18.top/, lately (2022.2) Updating autumn recruitment interview QA, Suitable target is “ Big factory + Survey and opening post ”, Welcome to watch ~
 Insert picture description here

Preface

Use Github.io When building your own blog, you may encounter poor access speed , The following solutions can be adopted to solve :

  1. take Hexo Deploy to Alibaba cloud Click to see ), Direct access to Alibaba cloud , But this method will expose the of your server ip, There are safety risks , The bandwidth of the server may not meet the demand , You can refer to https://zhuanlan.zhihu.com/p/58654392, When you're done, be right /home/git/hexo/hooks/post-receive Add executable permissions to the file
  2. use Gitee, Speed is guaranteed , But now the personal version can't customize the domain name
  3. use Github.io, To configure Tencent cloud CDN, Novices can get six months , monthly 20G The free CDN Traffic .

CDN To configure

Suppose you have installed the online tutorial configuration Hexo Such steps

  1. After execution hexo d -g after , Configure... In the warehouse Pages, Reference resources https://sspai.com/post/54608, Be careful Do not configure a custom domain name , In Tencent cloud CDN Middle configuration .

  2. You should be able to access your github.io Page , for example :https://liu-hx.github.io/ In this form

  3. Tencent cloud CDN Main configuration host And domain name , Refer to the below
     Insert picture description here

  4. Domain name setting resolution
     Insert picture description here
    Two article , Corresponding to overseas and domestic respectively

Now visit... Separately https://liu-hx.github.io/ and https://xpt.hatake18.top/ You should be able to visit your website ,cdn Why , The second may be slower to update , You need to set up your own

copyright notice
author[Xia ordinary],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/118/202204280553438148.html

Random recommended