{"id":433,"date":"2026-07-21T19:58:31","date_gmt":"2026-07-21T11:58:31","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/07\/21\/%e6%88%91-nas-%e4%b8%8a%e8%b7%91%e7%9a%84-10mb-%e9%80%9a%e7%9f%a5%e6%9c%8d%e5%8a%a1%ef%bc%8c%e6%8a%8a%e6%89%80%e6%9c%89%e5%91%8a%e8%ad%a6%e9%83%bd%e6%94%b6%e9%bd%90%e4%ba%86\/"},"modified":"2026-07-21T19:59:07","modified_gmt":"2026-07-21T11:59:07","slug":"%e6%88%91-nas-%e4%b8%8a%e8%b7%91%e7%9a%84-10mb-%e9%80%9a%e7%9f%a5%e6%9c%8d%e5%8a%a1%ef%bc%8c%e6%8a%8a%e6%89%80%e6%9c%89%e5%91%8a%e8%ad%a6%e9%83%bd%e6%94%b6%e9%bd%90%e4%ba%86","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/07\/21\/%e6%88%91-nas-%e4%b8%8a%e8%b7%91%e7%9a%84-10mb-%e9%80%9a%e7%9f%a5%e6%9c%8d%e5%8a%a1%ef%bc%8c%e6%8a%8a%e6%89%80%e6%9c%89%e5%91%8a%e8%ad%a6%e9%83%bd%e6%94%b6%e9%bd%90%e4%ba%86\/","title":{"rendered":"\u6211 NAS \u4e0a\u8dd1\u7684 10MB \u901a\u77e5\u670d\u52a1\uff0c\u628a\u6240\u6709\u544a\u8b66\u90fd\u6536\u9f50\u4e86"},"content":{"rendered":"<p>NAS \u4e0a\u8dd1\u7684\u81ea\u6258\u7ba1\u670d\u52a1\u591a\u4e86\u4e4b\u540e\uff0c\u544a\u8b66\u8fd9\u4ef6\u4e8b\u5c31\u5f00\u59cb\u5931\u63a7\u4e86\uff1aUptime Kuma \u90ae\u4ef6\u585e\u5728\u8ba2\u9605\u90ae\u4ef6\u91cc\u3001Watchtower \u5347\u7ea7\u5b8c\u9ed8\u8ba4\u4e0d\u901a\u77e5\u3001Home Assistant \u7684\u544a\u8b66\u76f4\u63a5\u53d1\u98de\u4e66\u7fa4\u3001Sonarr \u4e0b\u8f7d\u5b8c\u53ea\u5728 Web \u754c\u9762\u6302\u4e2a\u7ea2\u70b9\u3002\u6bcf\u5929\u65e9\u4e0a\u6253\u5f00\u90ae\u7bb1\u7ffb\u4e00\u5708\u624d\u80fd\u77e5\u9053\u6628\u665a\u54ea\u4e2a\u670d\u52a1\u6302\u8fc7\uff0c\u54ea\u4e2a\u5bb9\u5668\u6084\u6084\u5347\u7ea7\u4e86\u3002<\/p>\n<p>\u540e\u6765\u88c5\u4e86 Gotify\uff0c\u628a\u6240\u6709\u544a\u8b66\u90fd\u63a5\u4e0a\uff0c\u624b\u673a\u4e0a\u7edf\u4e00\u6536\uff0c\u5b89\u9759\u591a\u4e86\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u9009\u5b83<\/h3>\n<p>\u540c\u7c7b\u5de5\u5177\u91cc\u6211\u4e4b\u524d\u7528\u8fc7 Pushover\uff0c\u597d\u7528\u4f46\u8981\u4e00\u6b21\u6027\u4ed8 5 \u7f8e\u5143\u4e70\u65ad iOS \/ Android \u5ba2\u6237\u7aef\uff08Android \u7aef\u662f\u514d\u8d39\u7684\u4f46 iOS \u8981\u4e70\uff09\uff0c\u800c\u4e14\u662f\u95ed\u6e90\u670d\u52a1\u3002\u540e\u6765\u5728 Trendshift \u4e0a\u770b\u5230 Gotify \u4e00\u76f4\u5728 trending\u2014\u2014\u4e00\u4e2a 15k star \u7684\u5c0f\u670d\u52a1\uff0c\u5355 Go \u8fdb\u7a0b\uff0c10MB \u5185\u5b58\u5360\u7528\uff0c\u96f6\u5916\u90e8\u4f9d\u8d56\uff08\u8fde\u6570\u636e\u5e93\u90fd\u662f\u5185\u5d4c\u7684 SQLite\uff09\u3002\u770b\u4e86\u773c\u4ed3\u5e93\uff0c2025 \u5e74\u8fd8\u5728\u6301\u7eed\u63d0\u4ea4\uff0c\u6700\u8fd1\u4e00\u4e2a\u7248\u672c\u662f v2.9.1\u3002\u51b3\u5b9a\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/gotify-ui-1200.jpg\" alt=\"Gotify Web UI \u622a\u56fe\" \/><\/p>\n<p>\u5b83\u505a\u7684\u4e8b\u60c5\u975e\u5e38\u5355\u4e00\uff1a\u8dd1\u4e00\u4e2a HTTP \u670d\u52a1\uff0c\u4efb\u4f55\u811a\u672c\u3001\u5bb9\u5668\u3001\u76d1\u63a7\u5de5\u5177\u90fd\u53ef\u4ee5 <code>POST<\/code> \u4e00\u6761\u6d88\u606f\u8fc7\u6765\uff0c\u5df2\u8fde\u63a5\u7684\u5ba2\u6237\u7aef\uff08Web \u754c\u9762\u3001Android app\uff09\u5b9e\u65f6\u6536\u5230\u63a8\u9001\u3002\u672c\u8d28\u4e0a\u5c31\u662f\u300c\u81ea\u5efa\u7248\u7684 Pushover\u300d\uff0c\u4f46\u5b8c\u5168\u514d\u8d39\u3001\u5b8c\u5168\u5f00\u6e90\u3001\u5b8c\u5168\u81ea\u6258\u7ba1\u3002<\/p>\n<h3>\u5341\u5206\u949f\u90e8\u7f72<\/h3>\n<p>Docker Compose \u76f4\u63a5\u8d77\uff1a<\/p>\n<pre><code>services:\n  gotify:\n    image: gotify\/server\n    container_name: gotify\n    restart: unless-stopped\n    ports:\n      - \"8080:80\"\n    environment:\n      - GOTIFY_DEFAULTUSER_PASS=\u6539\u6210\u4f60\u7684\u5f3a\u5bc6\u7801\n    volumes:\n      - .\/data:\/app\/data\n<\/code><\/pre>\n<p>\u6302\u4e2a\u53cd\u5411\u4ee3\u7406\u5957\u4e0a HTTPS\uff08\u4e00\u5b9a\u8981\u5957\uff0ctoken \u662f URL \u53c2\u6570\u4f20\u8f93\uff0c\u660e\u6587 HTTP \u4f1a\u88ab\u4e2d\u95f4\u4eba\u622a\u5230\uff09\u3002\u7136\u540e\u6d4f\u89c8\u5668\u5f00 <code>https:\/\/gotify.yourdomain.com<\/code>\uff0cadmin \u767b\u5f55\uff0c\u7acb\u523b\u6539\u5bc6\u7801\u3002\u9ed8\u8ba4\u51ed\u8bc1\u662f <code>admin\/admin<\/code>\uff0c\u4e0d\u6539\u5c31\u662f\u4e2a\u8089\u9e21\u3002<\/p>\n<p>\u4e0b\u4e00\u6b65\u662f\u88c5 Android \u5ba2\u6237\u7aef\u3002F-Droid \u6216\u8005 Google Play \u90fd\u6709\uff0c\u88c5\u5b8c\u8f93\u5165\u670d\u52a1\u5730\u5740\u548c\u7528\u6237\u5bc6\u7801\u5c31\u8fde\u4e0a\u2014\u2014\u5b83\u8d70 WebSocket\uff0c\u4e0d\u662f\u8f6e\u8be2\uff0c\u6240\u4ee5\u624b\u673a\u6ca1\u6d88\u606f\u65f6\u4e0d\u8017\u7535\uff0c\u4f46\u540e\u53f0\u4f1a\u88ab Android \u6740\u6389\u3002\u9700\u8981\u5728\u300c\u7535\u6c60\u4f18\u5316\u300d\u767d\u540d\u5355\u91cc\u624b\u52a8\u52a0\u4e00\u4e0b\uff0c\u4e0d\u7136\u88c5\u5b8c\u5f53\u665a\u5c31\u6536\u4e0d\u5230\u901a\u77e5\uff0c\u4f1a\u4ee5\u4e3a\u81ea\u5df1\u6ca1\u914d\u5bf9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/gotify-android.png\" alt=\"Gotify Android \u5ba2\u6237\u7aef\" \/><\/p>\n<p>Web \u7aef\u548c Android \u5ba2\u6237\u7aef\u662f\u72ec\u7acb\u7684\u300cClient\u300d\uff0c\u4f46\u4f60\u53d1\u9001\u6d88\u606f\u8981\u7684\u662f\u300cApplication\u300d\u7684 Token\u3002\u4e00\u4e2a Application \u5bf9\u5e94\u4e00\u4e2a\u6d88\u606f\u6e90\uff08\u5907\u4efd\u811a\u672c\u3001Uptime Kuma\u3001Watchtower\uff09\uff0c\u6bcf\u4e2a Application \u6709\u81ea\u5df1\u7684 Token\u3002\u5220 Application \u4e0d\u4f1a\u5f71\u54cd\u5df2\u7ecf\u53d1\u9001\u7684\u5386\u53f2\u6d88\u606f\u3002<\/p>\n<h3>\u628a\u6240\u6709\u670d\u52a1\u63a5\u4e0a\u53bb<\/h3>\n<p>\u63a5\u5165\u65b9\u5f0f\u6bd4\u6211\u60f3\u8c61\u7684\u7b80\u5355\u2014\u2014\u4efb\u4f55\u80fd\u53d1 HTTP \u8bf7\u6c42\u7684\u670d\u52a1\u90fd\u80fd\u7528\uff0c\u56e0\u4e3a <code>\/message?token=xxx<\/code> \u8fd9\u4e2a\u7aef\u70b9\u5c31\u662f Gotify \u66b4\u9732\u7684\u5168\u90e8 API\u3002<\/p>\n<p><strong>Uptime Kuma\uff1a<\/strong>\u8bbe\u7f6e\u91cc Notification \u9009 Gotify\uff0c\u586b\u670d\u52a1\u5730\u5740\u548c App Token \u5c31\u884c\uff0c\u539f\u751f\u652f\u6301\u3002<\/p>\n<p><strong>Watchtower\uff1a<\/strong>\u73af\u5883\u53d8\u91cf\u52a0 <code>WATCHTOWER_NOTIFICATIONS=gotify<\/code>\uff0c\u518d\u7ed9\u5b83 GOTIFY_URL \u548c GOTIFY_TOKEN\u3002\u5bb9\u5668\u6709\u66f4\u65b0\u4f1a\u76f4\u63a5\u63a8\u9001\u5230\u624b\u673a\u3002<\/p>\n<p><strong>Home Assistant\uff1a<\/strong>\u5728 <code>configuration.yaml<\/code> \u52a0\u4e00\u4e2a notify \u96c6\u6210\uff1a<\/p>\n<pre><code>notify:\n  - name: gotify\n    platform: gotify\n    url: https:\/\/gotify.yourdomain.com\n    token: !secret gotify_token\n<\/code><\/pre>\n<p>\u4e4b\u540e\u81ea\u52a8\u5316\u91cc\u7528 <code>notify.gotify<\/code> \u5c31\u80fd\u89e6\u53d1\u63a8\u9001\u3002<\/p>\n<p><strong>\u81ea\u5df1\u7684\u5907\u4efd\u811a\u672c\uff1a<\/strong>\u8fd9\u662f\u6211\u6700\u5728\u610f\u7684\u2014\u2014\u4e4b\u524d\u6bcf\u5929\u5907\u4efd\u5b8c\u53ea\u770b\u4e00\u773c\u65e5\u5fd7\u6587\u4ef6\u786e\u8ba4\u6210\u529f\uff0c\u73b0\u5728\u672b\u5c3e\u52a0\u4e00\u884c\uff1a<\/p>\n<pre><code>curl -s \"https:\/\/gotify.yourdomain.com\/message?token=$TOKEN\" \n  -F \"title=\u591c\u95f4\u5907\u4efd\u5b8c\u6210\" \n  -F \"message=\u6570\u636e\u5e93\u5df2\u5907\u4efd\u5230\u5bf9\u8c61\u5b58\u50a8,\u5927\u5c0f $(du -h backup.tar.gz | cut -f1)\" \n  -F \"priority=4\"\n<\/code><\/pre>\n<p>\u6210\u529f\u63a8 priority=4\uff0c\u5931\u8d25\u63a8 priority=8\uff08\u9ad8\u4f18\u5148\u7ea7\u4f1a\u7ed5\u8fc7\u52ff\u6270\u6a21\u5f0f\u9707\u52a8\u54cd\u94c3\uff09\u3002\u6211\u81ea\u5df1\u7684\u811a\u672c\u5728\u51cc\u6668 3 \u70b9\u8dd1\uff0c\u7b2c\u4e8c\u5929\u8d77\u5e8a\u770b\u624b\u673a\u5c31\u77e5\u9053\u6628\u665a\u8dd1\u6ca1\u8dd1\u3001\u8dd1\u6210\u529f\u6ca1\u2014\u2014\u6bd4\u767b\u670d\u52a1\u5668\u7ffb\u65e5\u5fd7\u7701\u4e8b\u591a\u4e86\u3002<\/p>\n<h3>\u8e29\u5230\u7684\u4e24\u4e2a\u5751<\/h3>\n<p>\u7b2c\u4e00\u4e2a\u662f\u53cd\u4ee3\u3002Gotify \u8d70 WebSocket \u7ef4\u6301\u957f\u8fde\u63a5\uff0c\u7b2c\u4e00\u6b21\u7528 Nginx \u5957\u53cd\u4ee3\u65f6\u624b\u673a\u5b8c\u5168\u6536\u4e0d\u5230\u63a8\u9001\uff0c\u770b Web \u7aef\u662f\u6b63\u5e38\u7684\u3002\u539f\u56e0\u662f Nginx \u9ed8\u8ba4 60 \u79d2\u5c31\u65ad\u5f00\u7a7a\u95f2\u8fde\u63a5\uff0c\u52a0\u4e0a\u9ed8\u8ba4\u6ca1\u8f6c\u53d1 <code>Upgrade<\/code> \u5934\u3002\u8981\u5728 location \u91cc\u52a0\uff1a<\/p>\n<pre><code>proxy_http_version 1.1;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";\nproxy_read_timeout 86400s;\n<\/code><\/pre>\n<p>\u7b2c\u4e8c\u4e2a\u662f iOS\u3002Gotify \u6ca1\u6709\u5b98\u65b9 iOS \u5ba2\u6237\u7aef\uff0c\u793e\u533a\u6709\u51e0\u4e2a\u7b2c\u4e09\u65b9\uff0c\u4f53\u9a8c\u90fd\u8bf4\u4e0d\u4e0a\u597d\u3002\u6211\u4e3b\u529b Android \u6ca1\u8e29\u8fd9\u4e2a\u5751\uff0c\u4f46\u5bb6\u91cc\u7528 iPhone \u7684\u4eba\u6536\u4e0d\u5230\u901a\u77e5\u2014\u2014\u8fd9\u4e8b\u513f\u76ee\u524d\u6ca1\u89e3\uff0c\u8981\u4e48\u6362 ntfy\uff08iOS \u4f53\u9a8c\u597d\u4f46 Android \u7aef\u6ca1 Gotify \u5e72\u51c0\uff09\uff0c\u8981\u4e48\u63a5\u53d7\u5bb6\u91cc iPhone \u7528\u6237\u770b web \u7aef\u3002<\/p>\n<h3>\u7528\u4e86\u4e09\u4e2a\u6708\u7684\u611f\u53d7<\/h3>\n<p>\u5b83\u4e0d\u4f1a\u8ba9\u544a\u8b66\u53d8\u5c11\uff0c\u4f46\u4f1a\u8ba9\u6211\u4e0d\u518d\u6f0f\u770b\u3002priority 4 \u7684\u300c\u65e5\u5e38\u901a\u77e5\u300d\u6211\u6bcf\u5929\u626b\u4e00\u773c\u624b\u673a\u901a\u77e5\u4e2d\u5fc3\u5c31\u80fd\u786e\u8ba4\u6240\u6709\u81ea\u6258\u7ba1\u670d\u52a1\u8fd8\u6d3b\u7740\uff1bpriority 8 \u7684\u300c\u8be5\u9707\u52a8\u54cd\u94c3\u7684\u300d\u53ea\u6709\u5728\u771f\u51fa\u95ee\u9898\u624d\u51fa\u73b0\uff0c\u6240\u4ee5\u624b\u673a\u54cd\u4e86\u6211\u4f1a\u7acb\u523b\u53bb\u67e5\u3002<\/p>\n<p>\u5185\u5b58\u5360\u7528 10-20MB\uff0cCPU \u51e0\u4e4e\u4e0d\u52a8\uff0c\u8dd1\u5728 NAS \u4e0a\u8ddf\u6ca1\u88c5\u4e00\u6837\u3002\u914d\u7f6e\u4e00\u6b21\u4e4b\u540e\u57fa\u672c\u4e0d\u7528\u7ba1\u5b83\uff0c\u5907\u4efd\u811a\u672c\u3001\u5bb9\u5668\u76d1\u63a7\u3001Home Assistant \u81ea\u52a8\u5316\u90fd\u81ea\u5df1\u63a8\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e5f\u6709\u51e0\u4e2a\u81ea\u6258\u7ba1\u670d\u52a1\u3001\u6b63\u5728\u7528\u90ae\u4ef6\/\u5fae\u4fe1\u7fa4\/\u98de\u4e66\u673a\u5668\u4eba\u6536\u544a\u8b66\uff0c\u53ef\u4ee5\u82b1\u5341\u5206\u949f\u88c5\u4e00\u4e2a\u8bd5\u8bd5\u300210MB \u5185\u5b58\u3001\u96f6\u5916\u90e8\u4f9d\u8d56\u3001HTTPS \u4e00\u5957\u5c31\u5b8c\u4e8b\uff0c\u544a\u8b66\u8fd9\u4ef6\u4e8b\u5c31\u5e94\u8be5\u8fd9\u4e48\u8f7b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NAS \u4e0a\u8dd1\u7684\u81ea\u6258\u7ba1\u670d\u52a1\u591a\u4e86\u4e4b\u540e\uff0c\u544a\u8b66\u8fd9\u4ef6\u4e8b\u5c31\u5f00\u59cb\u5931\u63a7\u4e86\uff1aUptime Kuma \u90ae\u4ef6\u585e\u5728\u8ba2\u9605\u90ae\u4ef6\u91cc\u3001Watc &#8230; <a title=\"\u6211 NAS \u4e0a\u8dd1\u7684 10MB \u901a\u77e5\u670d\u52a1\uff0c\u628a\u6240\u6709\u544a\u8b66\u90fd\u6536\u9f50\u4e86\" class=\"read-more\" href=\"https:\/\/www.tantan.ink\/index.php\/2026\/07\/21\/%e6%88%91-nas-%e4%b8%8a%e8%b7%91%e7%9a%84-10mb-%e9%80%9a%e7%9f%a5%e6%9c%8d%e5%8a%a1%ef%bc%8c%e6%8a%8a%e6%89%80%e6%9c%89%e5%91%8a%e8%ad%a6%e9%83%bd%e6%94%b6%e9%bd%90%e4%ba%86\/\" aria-label=\"\u9605\u8bfb \u6211 NAS \u4e0a\u8dd1\u7684 10MB \u901a\u77e5\u670d\u52a1\uff0c\u628a\u6240\u6709\u544a\u8b66\u90fd\u6536\u9f50\u4e86\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":2,"featured_media":434,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176,164],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hands-on","category-selfhost"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":2,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":437,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions\/437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/434"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}