<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>云计算 on 背字根</title><link>https://www.beizigen.com/tag/cloud/</link><description>Recent content in 云计算 on 背字根</description><generator>Hugo</generator><language>zh-CN</language><copyright>2016</copyright><lastBuildDate>Thu, 09 Apr 2026 14:38:46 +0800</lastBuildDate><atom:link href="https://www.beizigen.com/tag/cloud/index.xml" rel="self" type="application/rss+xml"/><item><title>EdgeOne使用中间件实现301重定向</title><link>https://www.beizigen.com/post/edgeone-middleware-301-redirect/</link><pubDate>Thu, 09 Apr 2026 14:38:46 +0800</pubDate><guid>https://www.beizigen.com/post/edgeone-middleware-301-redirect/</guid><description>&lt;p>EdgeOne支持在配置文件中实现URL重定向、URL重写。但edgeone.json规则单一，且最多只支持100条重定向。使用中间件可以定义更灵活、数量更多的重定向规则。&lt;/p>
&lt;p>在项目根目录创建中间件middleware.js：&lt;/p></description></item><item><title>EdgeOne配置SSL证书</title><link>https://www.beizigen.com/post/edgeone-ssl-certificate-setup/</link><pubDate>Thu, 09 Apr 2026 10:13:36 +0800</pubDate><guid>https://www.beizigen.com/post/edgeone-ssl-certificate-setup/</guid><description>&lt;p>在&lt;a href="https://curl.qcloud.com/V95RFWc8" target="_blank" rel="noopener">EdgeOne&lt;/a>添加域名后，系统会分配对应的别名解析地址，配置证书前先做好域名解析。&lt;/p>
&lt;p>EdgeOne提供多种证书配置方式，如果别名解析已生效，可以使用自动验证方式。&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-ssl-certificate-setup_1.webp" alt="EdgeOne自动验证方式配置SSL证书">&lt;/p>
&lt;p>如上图所示，点击保存后等待证书颁发即可。但目前EdgeOne申请免费证书自动验证方式存在问题，域名解析超过24小时仍然申请证书失败。联系客服确认是系统问题，告知5月份EdgeOne会有一次大更新。&lt;/p></description></item><item><title>EdgeOne大陆区域速度测试</title><link>https://www.beizigen.com/post/edgeone-china-region-speed-test/</link><pubDate>Mon, 06 Apr 2026 13:43:23 +0800</pubDate><guid>https://www.beizigen.com/post/edgeone-china-region-speed-test/</guid><description>&lt;p>之前做过&lt;a href="https://www.beizigen.com/post/edgeone-global-speed-test/">EdgeOne全球区域速度测试&lt;/a>，实际测试的是海外节点访问情况。本站现在已部署在&lt;a href="https://curl.qcloud.com/V95RFWc8" target="_blank" rel="noopener">EdgeOne&lt;/a>大陆区域，本文所示测试为本站的实际测试结果。&lt;/p>
&lt;p>17测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-china-17ce.webp" alt="EdgeOne大陆区域17测结果">&lt;/p>
&lt;p>拨测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-china-boce.webp" alt="EdgeOne大陆区域拨测结果">&lt;/p>
&lt;p>炸了么：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-china-zhaleme.webp" alt="EdgeOne大陆区域炸了么结果">&lt;/p>
&lt;p>结果对比：&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th style="text-align: left">&lt;/th>
 &lt;th style="text-align: left">&lt;/th>
 &lt;th style="text-align: left">电信&lt;/th>
 &lt;th style="text-align: left">联通&lt;/th>
 &lt;th style="text-align: left">移动&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td style="text-align: left">17测&lt;/td>
 &lt;td style="text-align: left">平均&lt;/td>
 &lt;td style="text-align: left">0.67&lt;/td>
 &lt;td style="text-align: left">0.69&lt;/td>
 &lt;td style="text-align: left">0.69&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最快&lt;/td>
 &lt;td style="text-align: left">0.19&lt;/td>
 &lt;td style="text-align: left">0.21&lt;/td>
 &lt;td style="text-align: left">0.27&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最慢&lt;/td>
 &lt;td style="text-align: left">3.38&lt;/td>
 &lt;td style="text-align: left">5.13&lt;/td>
 &lt;td style="text-align: left">2.01&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">拨测&lt;/td>
 &lt;td style="text-align: left">平均&lt;/td>
 &lt;td style="text-align: left">0.464&lt;/td>
 &lt;td style="text-align: left">0.358&lt;/td>
 &lt;td style="text-align: left">0.425&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最快&lt;/td>
 &lt;td style="text-align: left">0.037&lt;/td>
 &lt;td style="text-align: left">0.057&lt;/td>
 &lt;td style="text-align: left">0.098&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最慢&lt;/td>
 &lt;td style="text-align: left">4.517&lt;/td>
 &lt;td style="text-align: left">0.762&lt;/td>
 &lt;td style="text-align: left">1.438&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">炸了么&lt;/td>
 &lt;td style="text-align: left">平均&lt;/td>
 &lt;td style="text-align: left">0.224&lt;/td>
 &lt;td style="text-align: left">0.315&lt;/td>
 &lt;td style="text-align: left">0.286&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最快&lt;/td>
 &lt;td style="text-align: left">0.012&lt;/td>
 &lt;td style="text-align: left">0.066&lt;/td>
 &lt;td style="text-align: left">0.063&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">最慢&lt;/td>
 &lt;td style="text-align: left">0.525&lt;/td>
 &lt;td style="text-align: left">0.493&lt;/td>
 &lt;td style="text-align: left">0.706&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>从上表可以看出，三网访问差距都不大，少数节点访问异常应与EdgeOne关系不大。&lt;/p></description></item><item><title>EdgeOne部署Hugo方法</title><link>https://www.beizigen.com/post/edgeone-deploy-hugo/</link><pubDate>Sat, 04 Apr 2026 16:55:23 +0800</pubDate><guid>https://www.beizigen.com/post/edgeone-deploy-hugo/</guid><description>&lt;p>&lt;a href="https://curl.qcloud.com/V95RFWc8" target="_blank" rel="noopener">EdgeOne&lt;/a>提供了Hugo模板，可以使用模板创建一个全新的Hugo站点。对于已有Hugo项目的情况，可以通过安装npm包的方式部署Hugo。&lt;/p>
&lt;p>如果只是想给现有站点加速，可以把&lt;a href="https://curl.qcloud.com/V95RFWc8" target="_blank" rel="noopener">EdgeOne&lt;/a>当作普通CDN来使用。如果是静态博客，更推荐使用Pages来部署。Pages部署的最大好处是：每次Git推送更新，边缘节点会自动刷新，网站内容实时更新，不需要手动刷新CDN缓存。&lt;/p>
&lt;p>如下图所示，点击通过Pages快速部署网站：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-deploy-hugo_1.webp" alt="EdgeOne创建Pages">&lt;/p>
&lt;p>选择部署方式：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-deploy-hugo_2.webp" alt="EdgeOne Pages部署方式">&lt;/p>
&lt;ul>
&lt;li>通过导入 Git 仓库创建：适合已有Hugo项目；&lt;/li>
&lt;li>通过模板创建：创建全新的Hugo站点，将创建一个新的代码仓库；&lt;/li>
&lt;li>通过上传文件创建：适合纯静态网站，内容基本不更新。&lt;/li>
&lt;/ul>
&lt;p>如果需要全新创建Hugo站点，可以选择hugo-starter模板快速创建：&lt;/p></description></item><item><title>EdgeOne全球区域速度测试</title><link>https://www.beizigen.com/post/edgeone-global-speed-test/</link><pubDate>Wed, 18 Mar 2026 12:04:34 +0800</pubDate><guid>https://www.beizigen.com/post/edgeone-global-speed-test/</guid><description>&lt;p>&lt;a href="https://curl.qcloud.com/V95RFWc8" target="_blank" rel="noopener">腾讯云EdgeOne&lt;/a>是一站式边缘加速+安全防护平台，不仅可用来给网站加速，Pages还可让开发者快速构建、部署静态站点和无服务器应用。&lt;/p>
&lt;p>EdgeOne全球区域（不含大陆地区）测试走新加坡线路，没有走香港，但速度也还不错。&lt;/p>
&lt;p>17测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-global-17ce.webp" alt="EdgeOne全球区域17测结果">&lt;/p>
&lt;p>拨测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-global-boce.webp" alt="EdgeOne全球区域拨测结果">&lt;/p>
&lt;p>炸了么：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/edgeone-global-zhaleme.webp" alt="EdgeOne全球区域炸了么结果">&lt;/p>
&lt;p>结果对比：&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>&lt;/th>
 &lt;th>&lt;/th>
 &lt;th>电信&lt;/th>
 &lt;th>联通&lt;/th>
 &lt;th>移动&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>17测&lt;/td>
 &lt;td>平均&lt;/td>
 &lt;td>2.41&lt;/td>
 &lt;td>1.98&lt;/td>
 &lt;td>1.82&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最快&lt;/td>
 &lt;td>0.18&lt;/td>
 &lt;td>0.85&lt;/td>
 &lt;td>0.28&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最慢&lt;/td>
 &lt;td>5.16&lt;/td>
 &lt;td>5.81&lt;/td>
 &lt;td>4.31&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>拨测&lt;/td>
 &lt;td>平均&lt;/td>
 &lt;td>1.76&lt;/td>
 &lt;td>1.162&lt;/td>
 &lt;td>0.956&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最快&lt;/td>
 &lt;td>0.526&lt;/td>
 &lt;td>0.559&lt;/td>
 &lt;td>0.134&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最慢&lt;/td>
 &lt;td>4.152&lt;/td>
 &lt;td>3.232&lt;/td>
 &lt;td>4.137&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>炸了么&lt;/td>
 &lt;td>平均&lt;/td>
 &lt;td>2.627&lt;/td>
 &lt;td>1.46&lt;/td>
 &lt;td>1.834&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最快&lt;/td>
 &lt;td>1.143&lt;/td>
 &lt;td>1.038&lt;/td>
 &lt;td>0.832&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>最慢&lt;/td>
 &lt;td>6.044&lt;/td>
 &lt;td>2.421&lt;/td>
 &lt;td>7.024&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>从上表可以看出，联通访问速度最理想，其次是移动，最慢是电信。&lt;/p></description></item><item><title>Azure Static Web App速度测试</title><link>https://www.beizigen.com/post/azure-static-web-app-speed-test/</link><pubDate>Wed, 18 Mar 2026 10:59:40 +0800</pubDate><guid>https://www.beizigen.com/post/azure-static-web-app-speed-test/</guid><description>&lt;p>创建Azure Static Web App时选择了East Asia区域，线路走香港，使用三年来感觉还不错。近期计划将博客换到国内，留个测速供参考。&lt;/p>
&lt;p>17测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/azure-static-web-app-17ce.webp" alt="Azure Static Web App 17测结果">&lt;/p>
&lt;p>拨测：&lt;/p>
&lt;p>&lt;img src="https://www.beizigen.com/images/azure-static-web-app-boce.webp" alt="Azure Static Web App 拨测结果">&lt;/p>
&lt;p>炸了么：&lt;/p></description></item><item><title>Azure Static Web App指定Hugo版本及自定义构建命令</title><link>https://www.beizigen.com/post/azure-static-web-app-hugo-version-custom-build/</link><pubDate>Sat, 06 Jul 2024 14:40:39 +0800</pubDate><guid>https://www.beizigen.com/post/azure-static-web-app-hugo-version-custom-build/</guid><description>&lt;p>Azure Static Web App指定Hugo版本的方法：在azure-pipelines.yml文件中，steps块下添加如下代码：&lt;/p>
&lt;pre tabindex="0">&lt;code>env:
 HUGO_VERSION: 0.122.0
&lt;/code>&lt;/pre>&lt;p>如果要自定义构建命令，则在inputs块下添加如下代码：&lt;/p>
&lt;pre tabindex="0">&lt;code>app_build_command: &amp;#39;hugo --cleanDestinationDir&amp;#39;
&lt;/code>&lt;/pre></description></item><item><title>Azure Static Web App突破配置文件20KB限制添加重定向规则</title><link>https://www.beizigen.com/post/azure-static-web-app-bypass-20kb-limit-redirect-rules/</link><pubDate>Mon, 10 Jun 2024 16:38:18 +0800</pubDate><guid>https://www.beizigen.com/post/azure-static-web-app-bypass-20kb-limit-redirect-rules/</guid><description>&lt;p>之前我的博客从WordPress转为Hugo后，URL发生了重大变化，有507篇文章需要做301重定向。&lt;/p>
&lt;p>Azure Static Web App可以通过配置文件staticwebapp.config.json添加重定向路由，例如：&lt;/p></description></item><item><title>Azure Repos代码仓库使用SSH连接方法</title><link>https://www.beizigen.com/post/azure-repos-use-ssh-connection/</link><pubDate>Sun, 11 Jun 2023 09:38:46 +0800</pubDate><guid>https://www.beizigen.com/post/azure-repos-use-ssh-connection/</guid><description>&lt;p>Azure Repos使用令牌方式链接虽然方便，但令牌每隔一段时间就得更新，所以推荐使用SSH方式链接。&lt;/p>
&lt;p>生成SSH密钥：&lt;/p>
&lt;pre tabindex="0">&lt;code>ssh-keygen -C &amp;#34;你的邮箱地址&amp;#34;
&lt;/code>&lt;/pre>&lt;p>生成的密钥对文件默认放置在~/.ssh目录中，名称为：&lt;/p></description></item><item><title>Azure Static Web App通过Pipelines自动部署Hugo站点</title><link>https://www.beizigen.com/post/azure-static-web-app-deploy-hugo-using-pipelines/</link><pubDate>Sat, 22 Apr 2023 08:51:01 +0800</pubDate><guid>https://www.beizigen.com/post/azure-static-web-app-deploy-hugo-using-pipelines/</guid><description>&lt;p>Azure Static Web App免费套餐配置为500MB空间，100GB月流量。Repos代码仓库无限制，Pipelines每月1800分钟构建时长。对于个人站点来说，这个配置足够使用了。&lt;/p>
&lt;h2>开通Azure Static Web App&lt;/h2>&lt;p>访问以下地址注册开通：&lt;/p></description></item></channel></rss>