diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/back.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/back.png new file mode 100644 index 0000000..d4d2098 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/back.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20230817175338692.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20230817175338692.png new file mode 100644 index 0000000..3a9f82c Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20230817175338692.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526111947464.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526111947464.png new file mode 100644 index 0000000..4902f1f Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526111947464.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112146870.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112146870.png new file mode 100644 index 0000000..66183c5 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112146870.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112424470.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112424470.png new file mode 100644 index 0000000..04ac15a Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526112424470.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526113540778.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526113540778.png new file mode 100644 index 0000000..73b50ee Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526113540778.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120045059.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120045059.png new file mode 100644 index 0000000..3e35002 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120045059.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120240066.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120240066.png new file mode 100644 index 0000000..88639cb Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120240066.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120448127.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120448127.png new file mode 100644 index 0000000..f94557f Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120448127.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120513838.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120513838.png new file mode 100644 index 0000000..b839ff7 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120513838.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120629619.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120629619.png new file mode 100644 index 0000000..946e7b6 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120629619.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120703992.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120703992.png new file mode 100644 index 0000000..1f5f546 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120703992.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120739062.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120739062.png new file mode 100644 index 0000000..fe1d8a7 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120739062.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120802863.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120802863.png new file mode 100644 index 0000000..9febb12 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526120802863.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121031029.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121031029.png new file mode 100644 index 0000000..4f60257 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121031029.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121347893.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121347893.png new file mode 100644 index 0000000..f8c1b57 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121347893.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121540724.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121540724.png new file mode 100644 index 0000000..eef04a1 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121540724.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121651529.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121651529.png new file mode 100644 index 0000000..b3f716f Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526121651529.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123033006.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123033006.png new file mode 100644 index 0000000..b3f716f Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123033006.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123041892.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123041892.png new file mode 100644 index 0000000..248d0c9 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123041892.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123201969.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123201969.png new file mode 100644 index 0000000..248d0c9 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123201969.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123209809.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123209809.png new file mode 100644 index 0000000..ad836a8 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123209809.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123245287.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123245287.png new file mode 100644 index 0000000..f467481 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123245287.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123439222.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123439222.png new file mode 100644 index 0000000..06e8178 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123439222.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123511861.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123511861.png new file mode 100644 index 0000000..47d068d Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123511861.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123600559.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123600559.png new file mode 100644 index 0000000..69793c2 Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123600559.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123652148.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123652148.png new file mode 100644 index 0000000..287a67d Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526123652148.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526125313648.png b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526125313648.png new file mode 100644 index 0000000..103007c Binary files /dev/null and b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/image-20240526125313648.png differ diff --git a/content/posts/how-to/how-to-install-Hoarder-on-your-nas/index.zh-cn.md b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/index.zh-cn.md new file mode 100644 index 0000000..3007619 --- /dev/null +++ b/content/posts/how-to/how-to-install-Hoarder-on-your-nas/index.zh-cn.md @@ -0,0 +1,317 @@ +--- +title: "Nas用户的完美本地运行的书签管理 一站式信息管理:如何搭建和使用Hoarder 管理你的数字信息?" +date: 2024-05-26T13:22:49+08:00 +categories: +- Nas教程 +draft: false +# url : /posts/xxx # 指定url +toc: true +description: nas用户的AI收藏夹 +featuredImage: "back.png" +featuredImagePreview: "back.png" +--- +nas用户的AI收藏夹 + +# Nas用户的完美本地运行的书签管理 一站式信息管理:如何搭建和使用Hoarder 管理你的数字信息? + +## 1. 前言 + +今天给各位nas爱好者,介绍一个`新玩具`-一个全新的书签笔记管理系统 + +我对它真的是`爱不释手`,并且我打算替换掉我现有的服务 + +我之前介绍过我使用的`linkding` [linkding](/how-to-install-linkding-in-nas/) + +![image-20230817175338692](image-20230817175338692.png) + +### 为什么你需要一个书签管理呢? + +在这个信息爆炸的时代,我们每天都会在smzdm、公众号,互联网上浏览无数信息,不论是有趣的文章、实用的工具还是一闪而过的灵感,都希望能在需要时`重新找到`它们。 + +但普通的书签管理工具往往只能解决一部分问题,很多时候,`只是在收藏,从未再打开过`,难以满足我们对信息管理的真正需求。 + +而今天的介绍的`Hoarder` —— 一个专为数据收藏者打造的自托管书签应用,配备`AI智能标签`和`全文搜索`功能,彻底改变您的信息收藏方式。 + +想象一下,不论是深夜发现的深度文章,还是清晨偶遇的灵感图片,都能一键保存,随时随地自由访问。 + +![image-20240526125313648](image-20240526125313648.png) + +接下来我会一步步带你搭建属于你的强大Hoarder 书签笔记管理工具 + +## 介绍hoarder + +Hoarder不仅仅是一个自托管的书签应用,它结合了AI技术,旨在为数据收藏者提供极致的信息管理体验。以下是Hoarder的核心功能: + +- **书签链接、记录简单笔记、存储图片**:一站式解决信息收集的需求。 +- **自动获取链接标题、描述和图片**:省去手动编辑的繁琐,效率倍增。 +- **将书签整理进列表**:自定义分类,轻松管理大量内容。 +- **全文搜索**:快速找到存储的任何内容,再也不怕丢失重要信息。 +- **基于AI的自动标签系统**:使用本地或在线模型,如ollama,智能标注,让内容组织更加智能。 + +![image-20240526121651529](image-20240526121651529.png) + +- **支持Chrome插件和Firefox插件**:一键快速书签,无缝集成浏览体验。 +- **iOS和Android应用**:随时随地管理你的信息库。 + +![homepage screenshot](https://github.com/hoarder-app/hoarder/raw/main/screenshots/homepage.png?raw=true) + +- **夜间模式支持**:保护眼睛,适应不同的使用环境。 +- **自托管优先**:完全控制你的数据和隐私。 + + + +--- + +搭建步骤: + +## 1. 重点 + +`点个免费关注`,不迷路 + +## 2. docker管理图形工具 + +#### 群晖 DSM 7.2版本以上可以直接使用 *Container Manager* + +![container-manager-1](\images\container-manager-1.png) + +#### 威联通 ContainerStation + +![container-station-1](\images\container-station-1.png) + +![container-station-2](\images\container-station-2.png) + + + +#### 自行安装Portainer + +教程参考: +[30秒安装Nas必备神器 Portainer](/how-to-install-portainer-in-nas/) + + +接下来以群晖的Container Manager为例 + +## 3. File Station + +File Station 打开docker 文件夹,创建`hoarder`文件夹 + +![image-20240526111947464](image-20240526111947464.png) + +依次创建如下目录: + +- web_data +- redis +- meilisearch + +![image-20240526112146870](image-20240526112146870.png) + +创建.env 文件 + +![image-20240526112424470](image-20240526112424470.png) + +.env 文件内容: + +``` +HOARDER_VERSION=release +NEXTAUTH_SECRET=AP8jEDXsVZ7bmnO+dQeqDP0uX+Y0yNV/BaQWrDXG/aSCwVSf +MEILI_MASTER_KEY=5BMHyWfjut7F10vbuHR2sGEAeaQEySDLOEzxxXuw+nmpBeb1 +NEXTAUTH_URL=http://localhost:3000 +# 非必须,如果你没有或者不需要ai帮你分类,那么去掉下面两行 +OPENAI_BASE_URL=https://xxx.com/v1 +OPENAI_API_KEY=sk-xxxxx +``` + +特殊配置说明: + +NEXTAUTH_SECRET: 主要是jwt相关的密钥,使用`openssl rand -base64 36` 生成,如果你不知道怎么办可以直接copy我这个 + +MEILI_MASTER_KEY:同上 + +如果你要使用ai生成对应标签的功能则需要配置如下两个: + +OPENAI_BASE_URL:配置你的ai节点 + +OPENAI_API_KEY: 对应的密钥 + +众所周知,`openai你是上不去的`,所以我是使用oneapi这样的工具,搭建自己的openai节点,这篇教程不深入探讨,如果想要了解更多,可以和我沟通交流 + + ## 4. Container Manager + +本次我使用的是群晖的Container Manager来搭建 ,Portainer与威联通基本类似: + +![image-20240526113540778](image-20240526113540778.png) + +复制下列配置: + +``` +version: "3.8" +services: + web: + image: ghcr.io/hoarder-app/hoarder-web:${HOARDER_VERSION:-release} + restart: unless-stopped + volumes: + - /volume1/docker/hoarder/web_data:/data + ports: + - 23000:3000 + env_file: + - .env + environment: + REDIS_HOST: redis + MEILI_ADDR: http://meilisearch:7700 + DATA_DIR: /data + redis: + image: redis:7.2-alpine + restart: unless-stopped + volumes: + - /volume1/docker/hoarder/redis:/data + chrome: + image: gcr.io/zenika-hub/alpine-chrome:123 + restart: unless-stopped + command: + - --no-sandbox + - --disable-gpu + - --disable-dev-shm-usage + - --remote-debugging-address=0.0.0.0 + - --remote-debugging-port=9222 + - --hide-scrollbars + meilisearch: + image: getmeili/meilisearch:v1.6 + restart: unless-stopped + env_file: + - .env + environment: + MEILI_NO_ANALYTICS: "true" + volumes: + - /volume1/docker/hoarder/meilisearch:/meili_data + workers: + image: ghcr.io/hoarder-app/hoarder-workers:${HOARDER_VERSION:-release} + restart: unless-stopped + volumes: + - /volume1/docker/hoarder/web_data:/data + env_file: + - .env + environment: + REDIS_HOST: redis + MEILI_ADDR: http://meilisearch:7700 + BROWSER_WEB_URL: http://chrome:9222 + DATA_DIR: /data + depends_on: + web: + condition: service_started + +``` + +部署即可 + +![image-20240526120045059](image-20240526120045059.png) + + + +## 5. 使用 + +浏览器进入程序:[ip]:[端口] + +> ip为你nas所在ip(这里我的是172.16.23.106),端口为上面配置文件定义,如果你按照我的教程,则是23000 + +![image-20240526120240066](image-20240526120240066.png) + +注册账号登录后 + +![image-20240526120513838](image-20240526120513838.png) + +如果你不想让别人使用你的服务 + +在你注册完账号后,在环境变量里`禁用账号注册`功能。前面.env部分加入这句话: + +DISABLE_SIGNUPS=true + +## 6. 特殊功能展示 + +#### 浏览器插件 + +搜索hoarder.app + +![image-20240526120629619](image-20240526120629619.png) + +`配置你的服务器地址`: + +![image-20240526120703992](image-20240526120703992.png) + + + + + +#### app 端 自行下载 + +ios + +![image-20240526120739062](image-20240526120739062.png) + +android + +![image-20240526120802863](image-20240526120802863.png) + +#### 浏览器插件使用 + +拿社群劳模`晋升奶爸的垃圾佬`的文章举例 + +直接点击插件按钮即可收录 + +![image-20240526121540724](image-20240526121540724.png) + + + +回到web端,你就能看到这篇文章成功被收藏,并且已经通过`ai分好了类别` + +![image-20240526121651529](image-20240526121651529.png) + + + +这里看到有些`图片并未显示`,应该是平台`防盗链`导致的 + +这里我收藏我自己的开源项目social-auto-upload,`图片就是正常的` + +![image-20240526123041892](image-20240526123041892.png) + +ai根据文章内容做出的分类标签,也可以自行添加`自定义的标签`,以及`备注信息` + +同时还可以切换截取`当时的截屏` + +![image-20240526123209809](image-20240526123209809.png) + + + +系统可以看到所有标签,包括ai以及你自己的 + +![image-20240526123245287](image-20240526123245287.png) + + + +#### 支持全文检测 + +它支持`全文搜索`任意收藏网页或者笔记中的。这无疑帮助我们能快速的从收藏的笔记和链接中`迅速`找到我们想要的东西 + +比如这篇收藏中出现了`随机数`这个词: + +![image-20240526123439222](image-20240526123439222.png) + + + +那么就可以在搜索中直接通过`随机数`搜索到 + +![image-20240526123511861](image-20240526123511861.png) + +再试试这个非常冷门的词汇:`UGOS` + +![image-20240526123600559](image-20240526123600559.png) + + + +同样也搜出来出现过`UGOS`的文章 + +![image-20240526123652148](image-20240526123652148.png) + +## 最后 + +如果你喜欢这篇文章,请记得点赞,收藏,并关注【老爸的数字花园】,我们将会持续带来更多实用的自搭建应用指南。一起,让我们掌握自己的数据,创建自己的数字世界! + +如果你在搭建过程中遇到任何问题,或者有任何建议,也欢迎在下方留言,一起探讨和学习。 \ No newline at end of file