|
90 | 90 | <meta property="og:url" content="https://blog.hyhcoder.top/2017/01/25/让Github Pages自定义域名开启HTTPS/index.html">
|
91 | 91 | <meta property="og:site_name" content="hyhcoder的博客">
|
92 | 92 | <meta property="og:description" content="放假在家,闲着无聊,于是乎又想着折腾下github pages的blog了, 最近github的国内连接速度不行,国内连接速度间歇性断网,导致blog也体验不佳, 还有最近https化的网站越来越多, google也在力推全面普及https, 年前刮起的小程序风也要求连接一定要是https, 导致也想折腾下给blog挂个小绿标(https). HTTPSHTTPS(全称:Hyper Text Tr">
|
93 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png"> |
94 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/65028105-file_1490712723046_1367c.png"> |
95 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/2234812-file_1490712828190_2809.png"> |
96 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/16638333-file_1490713066345_5ee9.png"> |
97 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/15468715-file_1490713454842_161d5.png"> |
98 |
| -<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/12336386-file_1490713119922_b7af.png"> |
99 |
| -<meta property="og:updated_time" content="2017-11-05T13:09:04.350Z"> |
| 93 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png"> |
| 94 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/65028105-file_1490712723046_1367c.png"> |
| 95 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/2234812-file_1490712828190_2809.png"> |
| 96 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/16638333-file_1490713066345_5ee9.png"> |
| 97 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/15468715-file_1490713454842_161d5.png"> |
| 98 | +<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/12336386-file_1490713119922_b7af.png"> |
| 99 | +<meta property="og:updated_time" content="2018-01-07T00:23:10.479Z"> |
100 | 100 | <meta name="twitter:card" content="summary">
|
101 | 101 | <meta name="twitter:title" content="让Github Pages自定义域名开启HTTPS">
|
102 | 102 | <meta name="twitter:description" content="放假在家,闲着无聊,于是乎又想着折腾下github pages的blog了, 最近github的国内连接速度不行,国内连接速度间歇性断网,导致blog也体验不佳, 还有最近https化的网站越来越多, google也在力推全面普及https, 年前刮起的小程序风也要求连接一定要是https, 导致也想折腾下给blog挂个小绿标(https). HTTPSHTTPS(全称:Hyper Text Tr">
|
103 |
| -<meta name="twitter:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png"> |
| 103 | +<meta name="twitter:image" content="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png"> |
104 | 104 |
|
105 | 105 |
|
106 | 106 |
|
@@ -395,21 +395,21 @@ <h2 id="解决方案"><a href="#解决方案" class="headerlink" title="解决
|
395 | 395 | </ol>
|
396 | 396 | <h2 id="coding-pages的搭建"><a href="#coding-pages的搭建" class="headerlink" title="coding pages的搭建"></a>coding pages的搭建</h2><ol>
|
397 | 397 | <li>首先注册coding的账号: <a href="https://coding.net/" target="_blank" rel="external">https://coding.net/</a></li>
|
398 |
| -<li><p>登陆后建立自己的第一个项目;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png" alt="enter image description here"></p> |
| 398 | +<li><p>登陆后建立自己的第一个项目;<br><img src="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png" alt="enter image description here"></p> |
399 | 399 | </li>
|
400 | 400 | <li><p>注意项目名称要与用户名一致,这点跟github一样;</p>
|
401 | 401 | </li>
|
402 |
| -<li><p>然后用本机和coding建立ssh密钥连接;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/65028105-file_1490712723046_1367c.png" alt="enter image description here"></p> |
| 402 | +<li><p>然后用本机和coding建立ssh密钥连接;<br><img src="http://img.hyhcoder.top/17-3-28/65028105-file_1490712723046_1367c.png" alt="enter image description here"></p> |
403 | 403 | </li>
|
404 |
| -<li><p>更改hexo的_config.yml,为了能同时同步两个地方;加上coding的项目地址;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/2234812-file_1490712828190_2809.png" alt="enter image description here"></p> |
| 404 | +<li><p>更改hexo的_config.yml,为了能同时同步两个地方;加上coding的项目地址;<br><img src="http://img.hyhcoder.top/17-3-28/2234812-file_1490712828190_2809.png" alt="enter image description here"></p> |
405 | 405 | </li>
|
406 | 406 | <li><p>注意type和repo前有一个空格; github前面有一个tab;</p>
|
407 | 407 | </li>
|
408 | 408 | <li>执行hexo d; 开始同步;</li>
|
409 |
| -<li>然后在coding上面开启pages服务;以及绑定自己的域名;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/16638333-file_1490713066345_5ee9.png" alt="enter image description here"></li> |
410 |
| -<li>绑定自己的域名需要在自己的域名解析中绑定国内访问coding, 国外访问github;类似下面;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/15468715-file_1490713454842_161d5.png" alt="enter image description here"></li> |
| 409 | +<li>然后在coding上面开启pages服务;以及绑定自己的域名;<br><img src="http://img.hyhcoder.top/17-3-28/16638333-file_1490713066345_5ee9.png" alt="enter image description here"></li> |
| 410 | +<li>绑定自己的域名需要在自己的域名解析中绑定国内访问coding, 国外访问github;类似下面;<br><img src="http://img.hyhcoder.top/17-3-28/15468715-file_1490713454842_161d5.png" alt="enter image description here"></li> |
411 | 411 | <li>默认的解析到pages.coding.me,海外解析到github;</li>
|
412 |
| -<li>然后在下面申请https证书和开启强制https访问;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/12336386-file_1490713119922_b7af.png" alt="enter image description here"></li> |
| 412 | +<li>然后在下面申请https证书和开启强制https访问;<br><img src="http://img.hyhcoder.top/17-3-28/12336386-file_1490713119922_b7af.png" alt="enter image description here"></li> |
413 | 413 | </ol>
|
414 | 414 | <h2 id="结尾"><a href="#结尾" class="headerlink" title="结尾"></a>结尾</h2><p>至此,github pages的两个问题都解决了, 不仅解决了https的问题, 还顺带了把github pages国内访问慢的问题解决了, 达到海内外双线的效果, 不过国外访问就没有小绿标了, 这点就没那么完美了, 想要完美的解决还是需要自己部署一台服务器, 然后自己申请https证书来部署, 这样才是最完美, 下次整理下比较火的免费https证书和部署。</p>
|
415 | 415 |
|
|
0 commit comments