侧边栏壁纸
博主头像
Wood Chen博主等级

独唱独酬,独行独坐还独卧

  • 累计撰写 207 篇文章
  • 累计创建 126 个标签
  • 累计收到 6 条评论

目 录CONTENT

文章目录

vigil状态监控项目,怎么进行管理

wood
2023-06-11 / 0 评论 / 0 点赞 / 13 阅读 / 6543 字

AI摘要

本文介绍了一个用于 Vigil 状态管理的单页面应用程序的仓库地址,并提供了使用方法和示例页面。此外,还提供了 Vigil Reporting HTTP API 和 Manager HTTP API 的详细说明,包括列表发布公告、插入新公告、撤回公告、列出探测器警报、解决探测器警报的忽略规则和更新忽略规则等内容。

我写了一个单页面用于管理

仓库地址为:https://github.com/woodchen-ink/vigil_status_manager

使用方法

manager.html​页面放在与你status.example.com​同一个服务下,修改第109行为你自己的网址。然后打开这个网页即可。
image

示例页面

你需要先输入你的manager_token​,然后才能进行其他操作。
image


官方是有文档的,但是很不方便调用:

原文档为:https://github.com/valeriansaliou/vigil/blob/master/PROTOCOL.md#vigil-manager-http-api

Vigil Protocol

Vigil Reporter HTTP API

1️⃣ Report a replica

Endpoint URL:

HTTP POST https://status.example.com/reporter///

Where:

  • node_id​: The parent node of the reporting replica
  • probe_id​: The parent probe of the node

Request headers:

  • Add an Authorization​ header with a Basic​ authentication where the password is your configured reporter_token​.
  • Set the Content-Type​ to application/json; charset=utf-8​, and ensure you submit the request data as UTF-8.

Request data:

Adjust the request data to your replica context and send it as HTTP POST​:

{
  "replica": "",
  "interval": 30,

  "load": {
    "cpu": 0.30,
    "ram": 0.80
  }
}

Where:

  • replica​: The replica unique identifier (eg. the server LAN IP)
  • interval​: The push interval (in seconds)
  • load.cpu​: The general CPU load, from 0.00​ to 1.00​ (can be more than 1.00​ if the CPU is overloaded)
  • load.ram​: The general RAM load, from 0.00​ to 1.00

2️⃣ Flush a replica

Endpoint URL:

HTTP DELETE https://status.example.com/reporter////

Where:

  • node_id​: The parent node of the reporting replica
  • probe_id​: The parent probe of the node
  • replica_id​: The replica unique identifier (eg. the server LAN IP)

Request headers:

  • Add an Authorization​ header with a Basic​ authentication where the password is your configured reporter_token​.

Vigil Manager HTTP API

1️⃣ List published announcements

Endpoint URL:

HTTP GET https://status.example.com/manager/announcements/

Request headers:

  • Add an Authorization​ header with a Basic​ authentication where the password is your configured manager_token​.

2️⃣ Insert a new announcement

Endpoint URL:

HTTP POST https://status.example.com/manager/announcement/

Request headers:

  • Add an Authorization​ header with a Basic​ authentication where the password is your configured manager_token​.
  • Set the Content-Type​ to application/json; charset=utf-8​, and ensure you submit the request data as UTF-8.

Request data:

Adjust the request data to your announcement and send it as HTTP POST​:

{
  "title": "",
  "text": "<text>"
}</code></pre><p>Where:</p><ul><li>​<code>title</code>​: The title for the announcement</li><li>​<code>text</code>​: The description text for the announcement (can be multi-line)</li></ul><h4>3️⃣ Retract a published announcement</h4><p><strong>Endpoint URL:</strong></p><p>​<code>HTTP DELETE https://status.example.com/manager/announcement/<announcement_id>/</code>​</p><p>Where:</p><ul><li>​<code>announcement_id</code>​: The announcement identifier to be removed</li></ul><p><strong>Request headers:</strong></p><ul><li>Add an <code>Authorization</code>​ header with a <code>Basic</code>​ authentication where the password is your configured <code>manager_token</code>​.</li></ul><h4>4️⃣ List prober alerts</h4><p><strong>Endpoint URL:</strong></p><p>​<code>HTTP GET https://status.example.com/manager/prober/alerts/</code>​</p><p><strong>Request headers:</strong></p><ul><li>Add an <code>Authorization</code>​ header with a <code>Basic</code>​ authentication where the password is your configured <code>manager_token</code>​.</li></ul><h4>5️⃣ Resolve ignore rules for prober alerts</h4><p><strong>Endpoint URL:</strong></p><p>​<code>HTTP GET https://status.example.com/manager/prober/alerts/ignored/</code>​</p><p><strong>Request headers:</strong></p><ul><li>Add an <code>Authorization</code>​ header with a <code>Basic</code>​ authentication where the password is your configured <code>manager_token</code>​.</li></ul><h4>6️⃣ Update ignore rules for prober alerts</h4><p><strong>Endpoint URL:</strong></p><p>​<code>HTTP PUT https://status.example.com/manager/prober/alerts/ignored/</code>​</p><p><strong>Request headers:</strong></p><ul><li>Add an <code>Authorization</code>​ header with a <code>Basic</code>​ authentication where the password is your configured <code>manager_token</code>​.</li><li>Set the <code>Content-Type</code>​ to <code>application/json; charset=utf-8</code>​, and ensure you submit the request data as UTF-8.</li></ul><p><strong>Request data:</strong></p><p>Adjust the request data to your announcement and send it as <code>HTTP PUT</code>​:</p><pre><code class="lang-json">{
  "reminders_seconds": 600
}</code></pre><p>Where:</p><ul><li>​<code>reminders_seconds</code>​: The number of seconds during which downtime reminders should not be sent anymore (skipped)</li></ul><hr><p>‍</p>
      
      
    </div>
    
  </article>
  
      
  <div class="joe_detail__agree">
    <div class="agree">
      <div class="icon">
        <i class="joe-font joe-icon-like icon-like"></i>
        <i class="joe-font joe-icon-like-fill icon-unlike"></i>
      </div>
      <span class="nums">0</span>
    </div>
  </div>
  
  
</div>
          
  <div class="joe_detail__operate">
    <div class="joe_detail__operate-tags">
     
      <a href="/tags/vigil">vigil</a>
     
      <a href="/tags/status">status</a>
     

  </div>
    

  
  <div class="joe_donate">
      <i class="joe-font joe-icon-shang"></i>
    
  <ol class="joe_donate_list two">
    
    <li>
      <p>支付宝打赏</p>
      <img src="https://cdn-img-r2.czl.net/2024/01/15/65a50089b4b92.png"  alt="qrcode alipay"/></li>
    
    
    <li>
      <p>微信打赏</p>
      <img src="https://cdn-img-r2.czl.net/woodchenink/2024/1/14/image.jpg"  alt="qrcode weixin"/></li>
    
    
</ol>

</div>


</div>

          
  <div class="joe_detail__copyright">
    <div class="content">
      <div class="item">
        <svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
          <path d="M614.72 554.538c-49.086-6.399-100.27-2.1-149.256-2.1-119.465 0-209.04 95.972-206.84 215.437 0 17.095 8.498 31.99 23.493 40.488 14.896 10.697 34.09 14.896 53.285 17.095 61.882 6.398 123.664 6.398 198.342 6.398 40.488 0 93.872-2.1 142.858-4.298 27.692 0 53.284-4.3 78.877-14.896 19.194-8.498 29.89-19.194 31.99-40.488 8.498-104.57-72.478-204.84-172.75-217.636zM680.8 375.39c0-87.474-74.678-162.053-164.251-162.053-89.574 0-162.053 74.679-162.053 162.053-2.1 87.474 74.678 164.252 162.053 164.252 89.673 0 164.252-74.678 164.252-164.252z" fill="#FFF" />
          <path d="M512.35 0C228.733 0 .5 228.233.5 511.85s228.233 511.85 511.85 511.85 511.85-228.233 511.85-511.85S795.967 0 512.35 0zm275.12 772.074c-2.1 21.294-12.797 31.99-31.991 40.488-25.593 10.697-51.185 14.896-78.877 14.896-49.086 2.099-102.37 4.298-142.858 4.298-74.678 0-136.46 0-198.342-6.398-19.195-2.1-38.389-6.398-53.285-17.095-14.895-8.497-23.493-23.493-23.493-40.488-2.1-119.465 87.475-215.437 206.84-215.437 49.085 0 100.27-4.299 149.256 2.1 100.27 12.896 181.247 113.166 172.75 217.636zM354.495 375.39c0-87.474 72.479-162.053 162.053-162.053S680.8 288.016 680.8 375.39c0 89.574-74.679 164.252-164.252 164.252-87.375 0-164.152-76.778-162.053-164.252z" fill="#249FF8" />
        </svg>
        <span>版权归属:</span>
        
        <span class="text">wood</span>
        
      </div>
      <div class="item">
        <svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
          <path d="M511.854 0A511.854 511.854 0 1 0 1024 511.854 511.854 511.854 0 0 0 511.854 0z" fill="#39B54A" />
          <path d="M576.491 630.355L460.028 746.818a129.565 129.565 0 0 1-182.555 0l-2.038-2.038a128.983 128.983 0 0 1 0-182.264l81.233-81.233a179.644 179.644 0 0 0 13.102 70.46l-52.7 52.408a69.878 69.878 0 0 0 0 98.703l2.038 2.038a70.169 70.169 0 0 0 98.703 0l116.463-116.463a69.878 69.878 0 0 0 0-98.703l-2.039-2.038a69.587 69.587 0 0 0-13.975-10.772l42.509-42.51a128.11 128.11 0 0 1 13.102 11.356l2.038 2.038a129.274 129.274 0 0 1 0 182.264z" fill="#FFF" />
          <path d="M746.236 460.902l-81.233 81.233a179.353 179.353 0 0 0-13.102-70.46l52.7-52.409a69.878 69.878 0 0 0 0-98.702l-2.039-2.038a69.878 69.878 0 0 0-98.702 0L487.397 434.989a69.878 69.878 0 0 0 0 98.702l2.038 2.038a68.422 68.422 0 0 0 13.976 10.773l-42.51 42.51a136.553 136.553 0 0 1-13.101-11.356l-2.038-2.038a128.983 128.983 0 0 1 0-182.265l116.463-116.462a129.565 129.565 0 0 1 182.555 0l2.038 2.038a128.983 128.983 0 0 1 0 182.264z" fill="#FFF" />
        </svg>
        <span>本文链接:</span>
        <span class="text">
          <a class="link" href="/archives/vigil-status-monitoring-project-how-to-manage-2wzs7e" target="_blank" rel="noopener noreferrer nofollow">https://woodchen.ink/archives/vigil-status-monitoring-project-how-to-manage-2wzs7e</a>
        </span>
      </div>
      <div class="item">
        <svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
          <path d="M0 512a512 512 0 1 0 1024 0A512 512 0 1 0 0 512z" fill="#F3B243" />
          <path d="M540.672 323.584a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM540.672 688.128a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM229.376 512a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0z" fill="#FFF" />
          <path d="M341.037 480.37l257.344-175.718 27.713 40.592-257.34 175.718z" fill="#FFF" />
          <path d="M349.053 488.452L601.907 670.56l-28.725 39.887L320.307 528.34z" fill="#FFF" />
        </svg>
        <span>许可协议:</span>
        <span class="text">
          
          
        本文使用《<a class="link" href="//creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans" target="_blank" rel="noopener noreferrer nofollow">署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)</a>》协议授权
          
        </span>
      </div>
    </div>
  </div>

            

</div>
        
    <ul class="aside_operations">
        
            
  <li class="post-operate-like">
    <i class="joe-font joe-icon-dianzan icon-like"></i>
    <i class="joe-font joe-icon-dianzan-fill icon-unlike"></i>
    <span class="nums" df="" ></span>
  </li>
  
        
        
            <li class="post-operate-comment">
                <i class="joe-font joe-icon-message"></i>
                
                
            </li>
        
        
            <li class="post-operate-share">
                <i class="joe-font joe-icon-huifu"></i>
                <div class="share-icon-list">
                    
                        <a id="share_to_weixin" href="javascript:;" title="分享到微信">
                            <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="26"
                                 height="26">
                                <path d="M334.848 334.336a33.792 33.792 0 0 0-36.352 30.72 33.792 33.792 0 0 0 36.352 30.72 28.672 28.672 0 0 0 30.208-30.72 28.672 28.672 0 0 0-30.208-30.72zM581.12 512a24.576 24.576 0 0 0 0 51.2 27.648 27.648 0 0 0 30.208-24.576 27.648 27.648 0 0 0-30.208-26.624zM502.784 395.776a28.672 28.672 0 0 0 30.208-30.72 28.672 28.672 0 0 0-30.208-30.72 33.792 33.792 0 0 0-35.84 30.72 33.792 33.792 0 0 0 35.84 30.72zM713.216 512a24.576 24.576 0 0 0 0 51.2 27.648 27.648 0 0 0 30.208-24.576 27.648 27.648 0 0 0-30.208-26.624z"
                                      fill="#3db214"></path>
                                <path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0zM412.672 646.656a403.456 403.456 0 0 1-83.968-12.288l-83.968 43.008 24.064-73.728a201.216 201.216 0 0 1-96.256-165.376c0-116.224 108.032-207.872 240.128-207.872a240.128 240.128 0 0 1 242.688 172.032h-23.04a198.144 198.144 0 0 0-204.8 193.536 185.344 185.344 0 0 0 7.168 51.2zM768 732.672l17.92 60.928-66.048-36.864a296.96 296.96 0 0 1-72.192 12.288 191.488 191.488 0 0 1-204.8-177.664 191.488 191.488 0 0 1 204.8-177.664c108.032 0 204.8 79.872 204.8 177.664A185.856 185.856 0 0 1 768 732.672z"
                                      fill="#3db214"></path>
                            </svg>
                            <div class="qrcode_wrapper animated bounceIn">
                                <div class="qrcode_wx"></div>
                                <p>微信扫一扫</p>
                            </div>
                        </a>
                    
                    
                        <a href="http://service.weibo.com/share/share.php?sharesource=weibo&title=分享:vigil状态监控项目,怎么进行管理,原文链接:https://woodchen.ink/archives/vigil-status-monitoring-project-how-to-manage-2wzs7e&pic=null"
                           target="_blank" rel="noopener noreferrer" title="分享到新浪微博">
                            <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="30"
                                 height="30">
                                <path d="M480.8 457.76a271.04 271.04 0 0 0-37.28 2.72c-96 13.44-166.72 75.04-157.92 137.44s93.6 101.92 189.6 88.48 166.72-75.04 157.92-137.44c-7.68-54.08-73.12-91.04-152.32-91.2zm-23.36 211.52a122.08 122.08 0 0 1-24 2.4c-48 0-88-27.52-96-68.32-9.28-48 29.44-95.2 86.56-106.24s110.88 18.4 120 66.08-29.44 95.04-86.56 106.08z"
                                      fill="#F56467"/>
                                <path d="M512 73.28A438.72 438.72 0 1 0 950.72 512 438.72 438.72 0 0 0 512 73.28zm-43.84 666.88c-150.24 0-272-78.56-272-176S378.56 314.72 448 314.72c29.28 0 86.56 21.76 46.4 90.88a246.24 246.24 0 0 0 34.08-10.08c32-9.12 76.96-18.24 107.68 0 51.04 29.6 0 77.12 0 82.4s102.4 5.28 102.4 87.2c.32 96.48-120.16 175.04-270.4 175.04zm213.76-358.88a56 56 0 0 0-47.2-16 16.96 16.96 0 0 1-17.28-14.4 12.16 12.16 0 0 0 0 2.4v-4.8a12.16 12.16 0 0 0 0 2.4 20.48 20.48 0 0 1 17.28-17.28 77.28 77.28 0 0 1 68.32 18.56c32 28.48 18.72 75.68 18.72 75.68a21.28 21.28 0 0 1-20.48 17.28h-1.76a12.48 12.48 0 0 1-12.8-16.8 49.44 49.44 0 0 0-4.8-47.04zm120.16 60.64A29.6 29.6 0 0 1 776 467.84a22.08 22.08 0 0 1-19.68-25.92A139.2 139.2 0 0 0 736 336c-34.88-50.08-109.92-41.28-109.92-41.28A26.24 26.24 0 0 1 599.84 272v2.88-5.6V272a26.56 26.56 0 0 1 26.24-23.52 188.32 188.32 0 0 1 136.16 47.04c58.08 55.04 39.84 146.4 39.84 146.4z"
                                      fill="#F56467"/>
                                <path d="M459.36 547.04a17.6 17.6 0 1 0 17.6 17.6 17.6 17.6 0 0 0-17.6-17.6zm-44.32 23.2a43.52 43.52 0 0 0-18.4 4.32A32 32 0 0 0 376 613.12a32 32 0 0 0 42.88 9.12 32 32 0 0 0 20.64-38.72 25.76 25.76 0 0 0-24.48-13.28z"
                                      fill="#F56467"/>
                            </svg>
                        </a>
                    
                    
                        <a href="https://connect.qq.com/widget/shareqq/index.html?url=https://woodchen.ink/archives/vigil-status-monitoring-project-how-to-manage-2wzs7e&title=vigil状态监控项目,怎么进行管理&pics=null"
                           target="_blank" rel="noopener noreferrer" title="分享到QQ">
                            <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="30"
                                 height="30">
                                <path d="M512 73.28A438.72 438.72 0 1 0 950.72 512 438.72 438.72 0 0 0 512 73.28zM759.84 646.4c-9.6 8.16-20.8-6.08-29.76-20.32s-14.88-26.72-16-21.76a158.4 158.4 0 0 1-37.44 70.72c-1.28 1.6 28.8 12.48 37.44 35.68s24 57.6-80 68.8a145.76 145.76 0 0 1-80-16c-16.96-8.32-27.52-16-29.6-16a73.6 73.6 0 0 1-13.28 0 108 108 0 0 1-14.4 0c-1.76 0-22.24 32-113.12 32-70.4 0-88.64-44.32-74.4-68.8s37.76-32 34.4-35.36a192 192 0 0 1-34.4-57.6 98.56 98.56 0 0 1-4.16-13.44c-1.28-4.64-6.56 8.64-13.92 21.76s-14.4 22.72-22.88 22.72a11.52 11.52 0 0 1-6.56-2.4c-20.96-16-19.2-55.2-5.44-93.12s48-75.04 48-83.2c1.28-30.24-3.04-35.2 0-43.2 6.56-17.76 14.72-10.88 14.72-20.16 0-116.32 86.4-210.56 192.96-210.56s192.96 94.24 192.96 210.56c0 4.48 11.68 0 17.12 20.16a196.96 196.96 0 0 1 0 43.2c0 11.04 29.44 24.48 44.8 83.2S768 640 759.84 646.4z"
                                      fill="#68A5E1"/>
                            </svg>
                        </a>
                    
                    
                        <a href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https://woodchen.ink/archives/vigil-status-monitoring-project-how-to-manage-2wzs7e&sharesource=qzone&title=vigil状态监控项目,怎么进行管理&pics=null&summary="
                           target="_blank" rel="noopener noreferrer" title="分享到QQ空间">
                            <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="30"
                                 height="30">
                                <path d="M512 73.28A438.72 438.72 0 1 0 950.72 512 438.72 438.72 0 0 0 512 73.28zM829.92 432c5.6 16-150.24 146.4-150.24 146.4s2.08 12.64 4.16 22.08c0 0-72.64 2.24-132.32 0-32-1.28-69.12-7.04-69.12-7.04L656 470.24a1005.44 1005.44 0 0 0-125.76-13.6A908 908 0 0 0 380 463.36c-6.4 1.76 44.8 1.6 103.04 6.88 40.8 3.68 94.56 13.44 94.56 13.44l-172.8 128s73.92 4.48 140.32 4.16c74.72 0 142.24-9.92 142.72-8 12.96 56.16 36.96 167.52 28 176-12.16 12.32-185.6-97.6-185.6-97.6S368 785.6 345.92 785.6a3.68 3.68 0 0 1-2.08 0c-10.72-8.8 35.52-206.72 35.52-206.72S222.72 448 229.12 432s208-30.24 208-30.24 74.88-188 92.48-188 92.8 188 92.8 188S824.32 416 829.92 432z"
                                      fill="#F5BE3F"/>
                            </svg>
                        </a>
                    
                    
                        <a class="icon-share-link" href="javascript:;" rel="noopener noreferrer" title="复制文章链接">
                            <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
                                 p-id="3509" width="30" height="30">
                                <path d="M515.2 64c-246.4 0-448 198.4-448 444.8S268.8 953.6 512 953.6c246.4 0 444.8-201.6 444.8-444.8S758.4 64 515.2 64z m-118.4 441.6c-9.6 9.6-28.8 9.6-41.6 0l-22.4-25.6-12.8-9.6c-19.2-22.4-32-48-35.2-76.8 0-28.8 9.6-57.6 28.8-76.8 22.4-19.2 48-28.8 76.8-28.8 28.8 0 60.8 12.8 83.2 35.2l86.4 86.4c22.4 22.4 35.2 51.2 35.2 80 0 25.6-9.6 51.2-28.8 70.4-9.6 9.6-28.8 9.6-41.6 0-9.6-9.6-9.6-28.8 0-38.4 19.2-19.2 16-51.2-3.2-73.6l-86.4-86.4c-12.8-12.8-25.6-19.2-41.6-19.2-9.6 0-22.4 3.2-32 12.8-12.8 12.8-12.8 25.6-12.8 35.2 0 12.8 6.4 28.8 19.2 38.4l12.8 12.8 22.4 22.4c3.2 12.8 3.2 28.8-6.4 41.6z m307.2 201.6c-19.2 19.2-44.8 28.8-73.6 28.8-28.8 0-60.8-12.8-83.2-35.2l-86.4-86.4c-22.4-22.4-35.2-51.2-35.2-80 0-25.6 9.6-51.2 28.8-70.4 9.6-9.6 28.8-9.6 41.6 0 9.6 9.6 9.6 28.8 0 38.4-19.2 19.2-16 51.2 3.2 73.6l86.4 86.4c12.8 12.8 25.6 19.2 41.6 19.2 9.6 0 22.4-3.2 32-12.8 12.8-12.8 12.8-25.6 12.8-35.2 0-12.8-6.4-28.8-19.2-38.4l-25.6-25.6-9.6-9.6c-9.6-9.6-9.6-28.8 0-38.4 9.6-9.6 28.8-9.6 41.6 0l12.8 12.8 19.2 19.2c22.4 19.2 35.2 48 35.2 73.6 9.6 32-3.2 57.6-22.4 80z"
                                      fill="#989b9e"></path>
                            </svg>
                        </a>
                    
                </div>
            </li>
        
        
            <li class="post-operate-donate">
                <i class="joe-font joe-icon-shang"></i>
                
  <div class="joe_donate">
      <i class="joe-font joe-icon-shang"></i>
    
  <ol class="joe_donate_list two">
    
    <li>
      <p>支付宝打赏</p>
      <img src="https://cdn-img-r2.czl.net/2024/01/15/65a50089b4b92.png"  alt="qrcode alipay"/></li>
    
    
    <li>
      <p>微信打赏</p>
      <img src="https://cdn-img-r2.czl.net/woodchenink/2024/1/14/image.jpg"  alt="qrcode weixin"/></li>
    
    
</ol>

</div>

            </li>
        
    </ul>

<ul class="joe_post__pagination">

  <li class="joe_post__pagination-item prev">
    <a href="/archives/when-reverse-proxy-root-directory-how-to-make-a-link-or-page-not-be-represented-7exyd" title="当反向代理根目录时,怎么让某个链接或页面不被代理?">上一篇</a>
  </li>
<li class="joe_post__pagination-item next">
  <a href="/archives/1705374064041" title="群晖6.2.1系统以下,怎么配置以让反向代理支持ws协议?">下一篇</a>
</li>

</ul>
        
          <div class="joe_comment">
            
            
              
<div class="joe_comment_box">
  <div class="box_title">
  <h2>评论区</h2>
  </div>

  <div id="comment-content-halo-run-Post-1262"></div>
<script>
  CommentWidget.init(
    "#comment-content-halo-run-Post-1262",
    {
      group: "content.halo.run",
      kind: "Post",
      name: "1262",
      size: 20,
      replySize: 10,
      withReplies: true,
      withReplySize: 5
    }
  );
</script>


  

</div>


            
          </div>
        
          
        
</div>

<!--      <th:block th:if="${theme.config.post.enable_post_aside} and ${#annotations.getOrDefault(post, 'enable_aside', 'true')}">-->
        
  <aside class="joe_aside">
    
      
  <section class="joe_aside__item author">
    <img width="100%" height="120" class="image lazyload" src="/themes/theme-Joe3/assets/img/author_bg.jpg"  alt="博主栏壁纸">
    <div class="user">
      <div class="avatar_wrapper round">
        <img class="avatar lazyload" data-src="https://cdn-img-r2.czl.net/woodchenink/2024/1/14/blackwood.jpg" src="/themes/theme-Joe3/assets/svg/spinner-preloader.svg"  alt="博主头像"/>
        
        
    </div>
    <a class="link" href="https://woodchen.ink" target="_blank" rel="noopener noreferrer nofollow">
        wood<img class="level" src="/themes/theme-Joe3/assets/svg/level_1.svg"  alt="博主等级">
    </a>
    
    <p class="motto joe_motto">独唱独酬,独行独坐还独卧</p>
    
      

<!--    <p class="motto joe_motto">${user.description!'一句话介绍自己吧!'}</p>-->
</div>
<div class="count">

<!--  <div class="item" th:title="'累计访问数 '+${stats.visit}">-->
<!--    <span class="num">6564</span>-->
<!--    <span>访问量</span>-->
<!--  </div>-->
<!--    搭配A-->
    
    <!--    搭配B-->
    
    <!--    搭配C-->
    
        <div class="item" title="累计分类数 9">
            <span class="num">9</span>
            <span>分类数</span>
        </div>
        <div class="item" title="累计文章数 207">
            <span class="num">207</span>
            <span>文章数</span>
        </div>
        
            <div class="item" title="累计评论数 6">
                <span class="num">6</span>
                <span>评论数</span>
            </div>
        
        
    
    <!--    搭配D-->
    
</div>


    
    <div class="social-account">
    
        
  <a class="github" href="https://github.com/woodchen-ink" target="_blank" title="Github" rel="noopener noreferrer nofollow">
    <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="M512 95.872a426.666667 426.666667 0 0 0-134.912 831.445333c21.333333 3.754667 29.312-9.045333 29.312-20.266666 0-10.112-0.512-43.733333-0.512-79.445334-107.221333 19.712-134.954667-26.154667-143.488-50.133333a155.136 155.136 0 0 0-43.733333-60.288c-14.933333-7.978667-36.266667-27.733333-0.554667-28.245333a85.376 85.376 0 0 1 65.621333 43.733333 91.178667 91.178667 0 0 0 124.245334 35.2 89.770667 89.770667 0 0 1 27.221333-57.088c-94.933333-10.666667-194.133333-47.445333-194.133333-210.645333a166.058667 166.058667 0 0 1 43.733333-114.688 153.344 153.344 0 0 1 4.266667-113.066667s35.712-11.178667 117.333333 43.733333a402.218667 402.218667 0 0 1 213.333333 0c81.578667-55.466667 117.333333-43.733333 117.333334-43.733333a153.301333 153.301333 0 0 1 4.266666 113.066667 165.077333 165.077333 0 0 1 43.733334 114.688c0 163.712-99.754667 199.978667-194.688 210.645333a101.034667 101.034667 0 0 1 28.8 78.933333c0 57.088-0.512 102.954667-0.512 117.333334 0 11.221333 7.978667 24.533333 29.312 20.266666A426.88 426.88 0 0 0 512 95.872z" fill="var(--title)"></path></svg>
  </a>
  
    
        
<!--<#--  <a th:href="'mailto:youemail@mail.com?subject=邮件标题&body=邮件内容">告诉我</a>  –>-->
<a class="email" href="mailto:wood@czl.net" target="_blank" title="邮箱" rel="noopener noreferrer nofollow">
  <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="21" height="22"><path d="M512 938.666667C276.352 938.666667 85.333333 747.648 85.333333 512S276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667z m341.333333-426.666667a341.333333 341.333333 0 1 0-169.301333 294.869333l-43.008-73.685333A256 256 0 1 1 768 512v42.666667a42.666667 42.666667 0 0 1-85.333333 0V384h-57.770667a170.666667 170.666667 0 1 0 2.816 253.44A128 128 0 0 0 853.333333 554.666667v-42.666667z m-341.333333-85.333333a85.333333 85.333333 0 1 1 0 170.666666 85.333333 85.333333 0 0 1 0-170.666666z" fill="#dc4835"></path></svg>
</a>
  
    
        
    <a class="steam" href="https://steamcommunity.com/profiles/76561198856068384/" target="_blank" title="steam" rel="noopener noreferrer nofollow">
      <svg t="1693068806420" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5612" width="22" height="22"><path d="M510.872 0.00004A511.738935 511.738935 0 0 0 0.578065 470.68598l274.473965 113.377986a144.332982 144.332982 0 0 1 89.621989-24.903997L486.810003 382.552991v-2.615999a193.084975 193.084975 0 1 1 193.049976 193.095975h-4.48L501.388001 697.214951c0 2.275 0.193 4.549999 0.193 6.823a144.799982 144.799982 0 0 1-286.766963 28.543996L18.227063 651.159957A511.965935 511.965935 0 1 0 510.792 0.00004h0.069zM321.404024 776.591941L258.540032 750.549945a108.772986 108.772986 0 1 0 59.599993-148.745981l64.967991 26.837996a80.09299 80.09299 0 1 1-61.646992 147.835981v0.114z m487.139938-396.767949A128.661984 128.661984 0 1 0 679.882979 508.439975a128.843984 128.843984 0 0 0 128.662983-128.616983z m-225.061971-0.228a96.661988 96.661988 0 1 1 96.661988 96.661988 96.433988 96.433988 0 0 1-96.661988-96.661988z" fill="#004986" p-id="5613"></path></svg>    </a>
  
    
        
<a class="telegram" href="https://t.me/wood_chen" target="_blank" title="Telegram" rel="noopener noreferrer nofollow">
  <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M679.428571 746.857143l84-396q5.142857-25.142857-6-36t-29.428571-4L234.285714 501.142857q-16.571429 6.285714-22.571428 14.285714t-1.428572 15.142858 18.285715 11.142857l126.285714 39.428571 293.142857-184.571428q12-8 18.285714-3.428572 4 2.857143-2.285714 8.571429l-237.142857 214.285714-9.142857 130.285714q13.142857 0 25.714285-12.571428l61.714286-59.428572 128 94.285715q36.571429 20.571429 46.285714-21.714286z m344.571429-234.857143q0 104-40.571429 198.857143t-109.142857 163.428571-163.428571 109.142857-198.857143 40.571429-198.857143-40.571429-163.428571-109.142857-109.142857-163.428571T0 512t40.571429-198.857143 109.142857-163.428571T313.142857 40.571429 512 0t198.857143 40.571429 163.428571 109.142857 109.142857 163.428571 40.571429 198.857143z" fill="#1296db"></path></svg>
</a>
  
    
        
<a class="bilibili" href="https://space.bilibili.com/324062934" target="_blank" title="B站" rel="noopener noreferrer nofollow">
  <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="M777.514667 131.669333a53.333333 53.333333 0 0 1 0 75.434667L728.746667 255.829333h49.92A160 160 0 0 1 938.666667 415.872v320a160 160 0 0 1-160 160H245.333333A160 160 0 0 1 85.333333 735.872v-320a160 160 0 0 1 160-160h49.749334L246.4 207.146667a53.333333 53.333333 0 1 1 75.392-75.434667l113.152 113.152c3.370667 3.370667 6.186667 7.04 8.448 10.965333h137.088c2.261333-3.925333 5.12-7.68 8.490667-11.008l113.109333-113.152a53.333333 53.333333 0 0 1 75.434667 0z m1.152 231.253334H245.333333a53.333333 53.333333 0 0 0-53.205333 49.365333l-0.128 4.010667v320c0 28.117333 21.76 51.157333 49.365333 53.162666l3.968 0.170667h533.333334a53.333333 53.333333 0 0 0 53.205333-49.365333l0.128-3.968v-320c0-29.44-23.893333-53.333333-53.333333-53.333334z m-426.666667 106.666666c29.44 0 53.333333 23.893333 53.333333 53.333334v53.333333a53.333333 53.333333 0 1 1-106.666666 0v-53.333333c0-29.44 23.893333-53.333333 53.333333-53.333334z m320 0c29.44 0 53.333333 23.893333 53.333333 53.333334v53.333333a53.333333 53.333333 0 1 1-106.666666 0v-53.333333c0-29.44 23.893333-53.333333 53.333333-53.333334z" fill="#fb7299"></path></svg>
</a>
  
    
        
    <a class="tiktok" href="https://www.douyin.com/user/MS4wLjABAAAApsTz6D5fHtN07vswnMnb7FNz4QRcuvLs8rj2XBM-X0XQr5aBw691F8_1i2xYqNlD" target="_blank" title="tiktok" rel="noopener noreferrer nofollow">
      <svg t="1693067761541" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5397" width="24" height="24"><path d="M512 115.456c-219.004018 0-396.544 177.539982-396.544 396.542862 0 219.005156 177.539982 396.545138 396.544 396.545138 219.005156 0 396.544-177.539982 396.544-396.544 0-219.005156-177.538844-396.544-396.544-396.544z m260.551111 345.893547c-51.2 0.572302-98.986667-14.900338-141.084444-43.554134v201.151147c0 89.402027-61.031538 166.197476-147.566365 186.253084-118.055822 26.933476-217.911751-58.455609-230.519466-160.461937-13.181156-102.008604 51.817813-191.411769 151.534933-211.470791 19.484444-4.010667 47.922062-4.010667 63.850951-0.572303v107.738454c-4.551111-1.14688-8.906524-2.291484-13.490631-2.864925-38.968889-6.877867-76.662329 12.606578-92.136107 48.140516-15.471502 35.531662-5.093831 76.793173 26.428302 100.861724 26.361173 20.631324 55.622542 23.492836 85.420943 9.740516 29.800676-13.180018 45.681778-37.246293 49.120142-69.913031 0.57344-4.584107 0.408462-9.742791 0.408462-14.902614V224.664462c0-10.887396 0.362951-10.763378 11.251485-10.763378h85.39136c6.302151 0 8.597049 1.083164 9.170488 8.534472 4.582969 66.47808 55.066169 123.182649 119.823929 131.777422 6.877867 1.145742 14.436124 1.687324 22.400569 2.260764v104.874667H772.551111z" fill="#333333" p-id="5398"></path></svg>
    </a>
  
    
    </div>
    
    


</section>

  
  <div class="joe_aside_post">
    
    <div class="toc-container">
      <h3 class="toc-header"><i class="jiewen joe-icon-mulu" title="文章目录"></i>文章目录</h3>
      <div id="js-toc" class="toc"></div>
    </div>
    
    
      
  
  <section class="joe_aside__item newest">
    <div class="joe_aside__item-title">
      <i class="joe-font joe-icon-huo"></i>
      <span class="text">相关文章</span>
    </div>
    <div class="joe_aside__item-contain">

      <ul class="list">
        
        <li class="item">
          <a class="link" target="_blank" href="/archives/github-action-builds-two-dockeryaml-writing-of-amd-and-arm-mirrors-1p2awe" title="Github action构建amd和arm镜像的两种docker.yaml写法">Github action构建amd和arm镜像的两种docker.yaml写法</a>
          <i class="joe-font joe-icon-link"></i>
        </li>
        <li class="item">
          <a class="link" target="_blank" href="/archives/1705480596846" title="GitHub Actions自动构建docker镜像并上传Docker Hub">GitHub Actions自动构建docker镜像并上传Docker Hub</a>
          <i class="joe-font joe-icon-link"></i>
        </li>
        <li class="item">
          <a class="link" target="_blank" href="/archives/1313" title="PandoraNext项目,自动监控余额并发到飞书webhook(或其他)">PandoraNext项目,自动监控余额并发到飞书webhook(或其他)</a>
          <i class="joe-font joe-icon-link"></i>
        </li>
        <li class="item">
          <a class="link" target="_blank" href="/archives/1312" title="unix cron规则,设置为每周一到周五的 9点-21点,每个小时执行一次">unix cron规则,设置为每周一到周五的 9点-21点,每个小时执行一次</a>
          <i class="joe-font joe-icon-link"></i>
        </li>
        <li class="item">
          <a class="link" target="_blank" href="/archives/1311" title="我想添加一个shell脚本,用来清理 test数据库里logs表,只清理6个月前的记录,可以实现吗">我想添加一个shell脚本,用来清理 test数据库里logs表,只清理6个月前的记录,可以实现吗</a>
          <i class="joe-font joe-icon-link"></i>
        </li>
        
      </ul>
        
  </div>
  </section>
  

    
      
          
    <section class="joe_advert-large">
        
        <a target="_blank" rel="noopener noreferrer nofollow" href="" title="广告">
            <img class="omit" width="100%" src="/upload/65ad998030aee.png" alt="广告"/>
            <span class="icon">广告</span>
        </a>
        
        
    </section>

      
</div>
</aside>

<!--      </th:block>-->
</div>
    

  
  <div class="joe_action">
    
    
    
<div class="joe_action_item back2top">
  <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="25" height="25">
    <path d="M725.902 498.916c18.205-251.45-93.298-410.738-205.369-475.592l-6.257-3.982-6.258 3.414c-111.502 64.853-224.711 224.142-204.8 475.59-55.751 53.476-80.214 116.623-80.214 204.8v15.36l179.2-35.27c11.378 40.39 58.596 69.973 113.21 69.973 54.613 0 101.262-29.582 112.64-68.836l180.337 36.41v-15.36c-.569-89.885-25.031-153.6-82.489-206.507zM571.733 392.533c-33.564 31.29-87.04 28.445-118.329-5.12s-28.444-87.04 5.12-117.76c33.565-31.289 87.04-28.444 118.33 5.12s28.444 86.471-5.12 117.76zm-56.32 368.64c-35.84 0-64.284 29.014-64.284 64.285 0 35.84 54.044 182.613 64.284 182.613s64.285-146.773 64.285-182.613c0-35.271-29.014-64.285-64.285-64.285z" />
  </svg>
</div>
    
</div>



  
  <footer class="joe_footer  full ">

    <div class="joe_container">
      <div class="item">
        <p>
          2024 ©<a href="https://woodchen.ink" target="_blank" rel="noopener noreferrer">Wood Chen</a>
          
        </p>
        


    
  
  <div class="site_life">
    <i class="joe-font joe-icon-jiasu"></i>已运行 <strong class="joe_run__day">00</strong> 天 <strong class="joe_run__hour">00</strong> 时 <strong class="joe_run__minute">00</strong> 分 <strong class="joe_run__second">00</strong> 秒
  </div>
  

</div>
<div class="side-col">

  <div class="item">
    
    <a class="rss" href="/rss.xml" target="_blank" rel="noopener noreferrer"><i class="joe-font joe-icon-rss-fill"></i> RSS</a>
    
    
      <a href="/sitemap.xml" target="_blank" rel="noopener noreferrer">站点地图</a>
    
</div>


<div class="item busuanzi-statistic">
  <span class="site-pv"><i class="joe-font joe-icon-zhexiantu"></i>访问量<em id="busuanzi_value_site_pv">0</em></span>
  <span class="site-uv"><i class="joe-font joe-icon-monitor"></i>访客量<em id="busuanzi_value_site_uv">0</em></span>
  <span class="site-page-pv"><i class="joe-font joe-icon-dianji"></i>本页访客<em id="busuanzi_value_page_pv">0</em></span>
</div>

</div>
</div>
</footer>


</div>

<!--    ===== 引入脚本 start ===== -->
<!--    <th:block th:if="${htmlType == 'index' && theme.config.home.enable_index_list_effect == true} or ${htmlType == 'journals' && theme.config.journals.enable_journal_effect == true} or ${htmlType == 'photos' && theme.config.photos.enable_photos_effect == true}">-->
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/wowjs/wow.min.js"></script>
<!--    </th:block>-->
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/lazysizes/lazysizes.min.js"></script>
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/qmsg/qmsg.js"></script>
    
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/js/min/utils.min.js"></script>

    
    
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/tocbot/tocbot.min.js"></script>
    
    
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/fancybox/jquery.fancybox.min.js"></script>
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    
        <link rel="stylesheet" href="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.css">
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/APlayer/APlayer.min.js"></script>
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/meting/meting.min.js"></script>
    
    
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/js/min/custom.min.js?v=1.2.2"></script>
    
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/clipboard/clipboard.min.js"></script>
    
    
    
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/jquery-qrcode/jquery.qrcode.min.js"></script>
    
<!--相册-->
    

<!--===== 引入页面级js start =====-->
    <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/js/min/common.min.js?v=1.2.2"></script>
    
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/prism/prism.min.js"></script>
    
    
    
    
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/js/min/post.min.js?v=1.2.2"></script>
    
    
    
    
    

    <!-- ===== 引入页面级js end ===== -->

<!-- ===== 引入脚本 start ===== -->

    
<!-- 卜算子 -->
        <script src="https://cdn-r2.czl.net/wood_blog/240229/assets/lib/busuanzi/busuanzi.min.js"></script>
    

<!-- ===== 引入脚本 end =====-->

    
    
    

<!--搜索点击-->
    <script>
        const searchButton = document.getElementById("halo-search");
        searchButton.addEventListener("click", function() {
            SearchWidget.open();
        });
    </script>
<!--    大图配置-->
    
    
    


</body>

</html>