<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linux &#8211; Daoker小站</title>
	<atom:link href="https://daoker.cc/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Sun, 16 Feb 2025 04:06:17 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://daoker.cc/wp-content/uploads/2022/08/cropped-daoker_blog_s-32x32.png</url>
	<title>linux &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>使用IPv6+DDNS-GO+CloudFlare随时随地访问家中nas黑群晖（已弃用改用lucky）</title>
		<link>https://daoker.cc/daokerto1198.html</link>
					<comments>https://daoker.cc/daokerto1198.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Tue, 26 Dec 2023 14:11:18 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1198</guid>

					<description><![CDATA[2025年2月16日更新：已弃用DDNS-GO，直接部署一个lucky，好用易用 之前我是使用的zerotie [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>2025年2月16日更新：已弃用DDNS-GO，直接部署一个lucky，好用易用</p>
</blockquote>



<p>之前我是使用的zerotier搭建虚拟局域网的方案，每次使用都要打开客户端，并且速度还受到限制，非常的不方便。最近买了新华三的NX30pro路由器，并且桥接了运营商送的光猫，发现能分配到正确的IPv6,并且在路由器中把防火墙关闭后能直接从互联网访问我的黑群晖，于是有了给他安排一个DDNS动态域名解析服务的想法。</p>



<h2 class="wp-block-heading">黑群晖安装DDNS-GO</h2>



<p>这里有人选择从套件中心安装DDns-GO套件的方法，由于作者更前向于使用docker,因此采用群辉中的docker进行部署，在群晖的docker界面中拉取如下所示的映像并创建容器，创建容器时记得开启自动重启和改网络类型为host模式(bridge模式会比较麻烦，后面出文章讲解)</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="999" height="108" src="https://daoker.cc/wp-content/uploads/2024/02/image.png" alt="" class="wp-image-1202" srcset="https://daoker.cc/wp-content/uploads/2024/02/image.png 999w, https://daoker.cc/wp-content/uploads/2024/02/image-300x32.png 300w, https://daoker.cc/wp-content/uploads/2024/02/image-768x83.png 768w" sizes="(max-width: 999px) 100vw, 999px" /></figure>



<h2 class="wp-block-heading">CloudFlare相关设置</h2>



<p>参考这篇文章：<a href="https://baijiahao.baidu.com/s?id=1736704192493242126&amp;wfr=spider&amp;for=pc" target="_blank" rel="noreferrer noopener">利用DDNS-GO更新cloudflare域名！</a></p>



<h2 class="wp-block-heading">DDNS-GO的web管理界面设置</h2>



<ol class="wp-block-list">
<li class="has-medium-font-size">输入群晖IP:9876进入DDNS-GO的web管理界面</li>



<li class="has-medium-font-size">DNS服务商选择CF</li>



<li class="has-medium-font-size">Token就是我们的AIP令牌地址：</li>



<li class="has-medium-font-size">我们没有公网IPv4所以选择不启用，只启用IPv6</li>



<li class="has-medium-font-size">域名就是我们要解析的域名：</li>



<li class="has-medium-font-size">建议添加禁止公网访问以保证安全，否则就整个复杂点的密码</li>



<li class="has-medium-font-size">添加完毕后点保存，然后测试下有没有生效！</li>
</ol>



<h2 class="wp-block-heading">lucky</h2>



<p>2024年2月20日</p>



<p>最新发现使用lucky比DNS-go更简单且支持ipv4流量转发到ipv6流量，其集成了DDNS、域名解析、端口转发、反向代理、证书申请、内网穿透等功能。</p>



<p>2024年2月21日</p>



<p>在云服务器端，其实只要服务器开启了ipv6支持，宝塔面板的反代也可以把ipv4流量转发到ipv6流量</p>



<h2 class="wp-block-heading">Debian10开启动态ipv6支持</h2>



<pre class="wp-block-code"><code>vim /etc/network/interfaces
</code></pre>



<p>在最下面加入 iface ens192 inet6 dhcp，其中ens192 是网卡名称，可以通过ifconfig命令查看，最后重启服务器即可</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1198.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>自建docker镜像加速服务</title>
		<link>https://daoker.cc/jhjto1264.html</link>
					<comments>https://daoker.cc/jhjto1264.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 21 Dec 2024 03:33:18 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1264</guid>

					<description><![CDATA[在上一个文章部署股票神器instock过程中，虽然作者提供了打包好的镜像文件，但是不想使用，想自己拉取。但是又 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>在<a href="https://daoker.cc/jhjto1261.html">上一个文章部署股票神器instock</a>过程中，虽然作者提供了打包好的镜像文件，但是不想使用，想自己拉取。但是又想起之前自己群辉的docker套件中的注册表功能基本用不了，每次都是自己通过命令行的方式拉取镜像，这需要提前把网关改到旁路由且拉取十分的不稳定。虽然也有别人搭建的镜像加速服务可以使用（诸如<a href="https://dockerpull.org/">https://dockerpull.org/</a>），但是考虑到安全性，还是决定自己搭建。</p>



<h2 class="wp-block-heading">服务搭建</h2>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="dqzboy" data-project="Docker-Proxy"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/dqzboy/Docker-Proxy" target="_blank" rel="noopener"><span class="github-info-card-name">dqzboy/Docker-Proxy</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>作者这里选择在云服务上自己搭建，虽然也有用CF的work搭建的方法（<a href="https://www.znnu.com/28.html">利用Cloudflare Workers搭建Docker镜像加速服务</a>）.</p>



<p>1.下载<a href="https://github.com/dqzboy/Docker-Proxy/tree/main/config">config</a>目录下对应的<code>yml</code>文件到云服务器上。我这里只需要<strong><em>docker-hub.yml</em></strong>，也可直接新建文件插入以下代码</p>



<pre class="wp-block-code"><code>version: 0.1
log:
  fields:
    service: registry
storage:
  filesystem:
    rootdirectory: /var/lib/registry
  #inmemory: #此存储驱动程序不会在运行期间保留任何数据,适合磁盘空间下的机器使用(但是会使用内存开销,只适合测试)
  delete:
    enabled: true
  cache:
    blobdescriptor: inmemory   
    blobdescriptorsize: 10000
  maintenance:
    uploadpurging:
      enabled: true
      age: 168h
      interval: 24h
      dryrun: false
    readonly:
      enabled: false
http:
  addr: :5000
  headers:
    X-Content-Type-Options: &#091;nosniff]
    Access-Control-Allow-Origin: &#091;'*']
    Access-Control-Allow-Methods: &#091;'HEAD', 'GET', 'OPTIONS', 'DELETE']
    Access-Control-Allow-Headers: &#091;'Authorization', 'Accept', 'Cache-Control']
    Access-Control-Max-Age: &#091;1728000]
    Access-Control-Allow-Credentials: &#091;true]
    Access-Control-Expose-Headers: &#091;'Docker-Content-Digest']

health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3

proxy:
  remoteurl: https://registry-1.docker.io
  username: 
  password:
  ttl: 168h  </code></pre>



<p>2.docker-compose.yaml文件编辑</p>



<pre class="wp-block-code"><code>version: '3'
services:
  ## docker hub
  dockerhub:
    container_name: reg-docker-hub
    image: dqzboy/registry:latest
    restart: always
    environment:
      - OTEL_TRACES_EXPORTER=none
      # 如果需要配置代理，请把下面的注释去掉，并配置你的代理地址
      #- http_proxy=http://host:port
      #- https_proxy=http://host:port
    volumes:
      #这里需要注意registry-hub.yml文件的具体路径
      - /docker/docker-proxy/registry/data:/var/lib/registry
      - /docker/docker-proxy/registry-hub.yml:/etc/distribution/config.yml
      #- ./htpasswd:/auth/htpasswd
    ports:
      - 51000:5000
    networks:
      - registry-net
  ## UI
  registry-ui:
    container_name: registry-ui
    image: dqzboy/docker-registry-ui:latest
    environment:
      # UI所关联的REGISTRY容器服务地址,这里我是后来才更改的，原来是ip:端口的模式
      - DOCKER_REGISTRY_URL=https://hub.daoker.cc
      # &#091;必须]使用 openssl rand -hex 16 生成唯一值
      - SECRET_KEY_BASE=9f18244a1e1179fa5aa4a06a335d01b2
      # 启用Image TAG 的删除按钮
      - ENABLE_DELETE_IMAGES=true
      - NO_SSL_VERIFICATION=true
    restart: always
    ports:
      - 50000:8080
    networks:
      - registry-net
 
networks:
  registry-net:</code></pre>



<p>3.在NPM里将域名反代至相关端口</p>



<p>可视化页面：<a href="http://ui.daoker.cc">ui.daoker.cc</a></p>



<p>加速地址：<a href="http://hub.daoker.cc">hub.daoker.cc</a></p>



<p>使用方法docker pull hub.daoker.cc/library/nginx:latest</p>



<p>library必须有，github上有省略的办法，但是在npm的规则编辑里没有成功，先凑合用。</p>



<h2 class="wp-block-heading">所遇问题及解决方案</h2>



<p>1.添加hub.daoker.cc/library至黑群晖docker中的注册表加速地址后，导致docker套件直接无法使用</p>



<p>（1）查看日志文件/var/log/upstart/pkg-Docker-dockerd.log</p>



<p>发现是我改的加速地址惹得锅。在docker服务要启动sock的时候，因为无法加载json配置文件失败，json文件有错</p>



<p>（2）编辑配置文件/var/packages/Docker/etc/dockerd.json</p>



<p>删除registry-mirrors的值，如下所示，只保留[]</p>



<pre class="wp-block-code"><code>{
"data-root" : "/var/packages/Docker/target/docker",
"log-driver" : "db",
"registry-mirrors" : &#091;]
}</code></pre>



<p>（3）到套件中心启动docker，成功搞定</p>



<p>2.在黑群辉上使用自建的加速地址拉取镜像，返回x509: certificate signed by unknown authority，其它系统环境上并没有此问题</p>



<p> 真正的解决方案是更新系统的ca证书，从letsencrypt.org网站中获取证书更新到系统中</p>



<pre class="wp-block-code"><code>sudo -i &amp;&amp; cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.ORIG &amp;&amp; curl -k "https://letsencrypt.org/certs/isrgrootx1.pem" &gt;&gt; /etc/ssl/certs/ca-certificates.crt &amp;&amp; reboot
</code></pre>



<p>3.找资料时发现的小tips，留着以后备用</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>（3）&nbsp; &nbsp; docker的容器镜像如何迁移到其他设备？<br>解答：<br>群晖的docker管理界面里，容器-设置-导出-可以选择导出内容和设置，以及只导出设置。导出后是一个txz文件，例如transmission挂了几百个种，想迁移设备咋办？如果不拔盘整个迁移的话，可以用这个功能导出容器，在其他设备docker直接导入即可。（注意data目录、config目录要重新配置）<br>（4）&nbsp; &nbsp; 重点干货来了，如果我手贱卸了docker，例如我这次为了定位，卸载、重装了docker几十次（当然卸载时没勾选干掉容器镜像和数据），且没做提前做容器导出备份（docker都启动不了，导出个毛啊），此时我怎么恢复docker数据？<br>解答：<br>首先，在你原来docker的存储空间位置装上docker，此时注意存储空间下会有2个目录，如果你都被挪，自然就好了。如果要无界面备份的话，我再说说这两个目录作用：<br>目录1：存储空间下@docker目录<br>你有多少个容器，容器的文件、docker本身的配置，各类数据都在这里面，卸载时这个目录不会被清空，所以安装后就回来了。如果在docker无法启动时要备份docker数据，第一就是备份这个目录，今后在其他地方安装后，把这个目录的东西盖回去。<br>目录2：存储空间下docker目录</p>



<p>这是一个共享文件夹，各容器的config、data目录都在这下面，备份并盖回去。当然，如果没挪位置，重装后自然就好了。</p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1264.html/feed</wfw:commentRss>
			<slash:comments>36</slash:comments>
		
		
			</item>
		<item>
		<title>【NAS折腾记录】部署Home Assistant、开启sftp、部署股票神器「instock」</title>
		<link>https://daoker.cc/jhjto1261.html</link>
					<comments>https://daoker.cc/jhjto1261.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 21 Dec 2024 02:31:45 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1261</guid>

					<description><![CDATA[各个过程仅供参考，环境不一样所以操作也不完全相同。时间过了很久了，平时上班当牛马太累，具体步骤懒得写。 部署H [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>各个过程仅供参考，环境不一样所以操作也不完全相同。时间过了很久了，平时上班当牛马太累，具体步骤懒得写。</p>



<h2 class="wp-block-heading">部署Home Assistant</h2>



<p><a href="https://baijiahao.baidu.com/s?id=1798296446321396265&amp;wfr=spider&amp;for=pc">openwrt服务器部署Home Assistant，实现智能家居控制</a></p>



<p><a href="https://blog.csdn.net/weixin_42878111/article/details/136042375">如何在HA智能家居系统中添加HACS集成并实现异地控制家中苹果与小米设备</a></p>



<h2 class="wp-block-heading">开启SFTP</h2>



<p><a href="https://blog.csdn.net/mr_zql/article/details/108035812">群辉搭建FTP服务</a></p>



<h2 class="wp-block-heading">股票神器「instock」</h2>



<p><a href="https://post.smzdm.com/p/apm93dlw/?zdm_ss=Android_7600663162_&amp;send_by=7600663162&amp;from=singlemessage&amp;invite_code=zdmacngw8minv">NAS也能炒股赚钱！大数据下的股票神器「instock」极空间部署教程</a></p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="myhhub" data-project="stock"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/myhhub/stock" target="_blank" rel="noopener"><span class="github-info-card-name">myhhub/stock</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1261.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>[docker]使用甲骨文云ARM搭建ServerStatus服务端</title>
		<link>https://daoker.cc/jhjto1084.html</link>
					<comments>https://daoker.cc/jhjto1084.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Mon, 27 Mar 2023 12:19:35 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[玩机]]></category>
		<category><![CDATA[甲骨文云]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1084</guid>

					<description><![CDATA[很喜欢ServerStatus大概是因为它有三网延迟监控，所有我基本都是哪吒探针和ServerStatus一起 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>很喜欢ServerStatus大概是因为它有三网延迟监控，所有我基本都是哪吒探针和ServerStatus一起用，我的ServerStatus是部署在一台pacificrack的服务器上，前阵子他的IP被防火墙墙了，换Ip又太贵，更惨的是过了一台，挂了科学上网也连不上这台服务器，pacificrack官网也打不开，有人说疑似pacificrack要跑路了（我写文章时已经断断续续的恢复），于是决定把它迁移到我稍微有点空闲的甲骨文ARM服务器上，使用GitHub上的docker容器，发觉报错，看来是没有适配ARM啊(2024-11-12更新，最新版已经适配ARM版docker)，于是就只好编译安装，然后把web端挂载到docker里面。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="cppla" data-project="ServerStatus"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/cppla/ServerStatus" target="_blank" rel="noopener"><span class="github-info-card-name">cppla/ServerStatus</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="390" src="https://daoker.cc/wp-content/uploads/2023/03/image-17-1024x390.png" alt="" class="wp-image-1085" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-17-1024x390.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-17-300x114.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-17-768x293.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-17.png 1288w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>2.下载GitHub上的ServerStatus并解压；</p>



<p>3.进入解压后的ServerStatus的web目录，创建提供http文件服务的容器</p>



<pre class="wp-block-code"><code>docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4</code></pre>



<p>4.进入解压后的ServerStatus的server目录</p>



<p>安装编译环境</p>



<pre class="wp-block-code"><code>apt-get -y install gcc g++ make libcurl4-openssl-dev</code></pre>



<p>编译</p>



<pre class="wp-block-code"><code>make</code></pre>



<p>5.把旧服务器上的配置文件覆盖新的配置文件</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1023" height="83" src="https://daoker.cc/wp-content/uploads/2023/03/image-19.png" alt="" class="wp-image-1087" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-19.png 1023w, https://daoker.cc/wp-content/uploads/2023/03/image-19-300x24.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-19-768x62.png 768w" sizes="(max-width: 1023px) 100vw, 1023px" /></figure>



<p>执行下列命令启动程序并挂载在后台，也可以加入开机启动，在本博客有讲到，我这里就先不设置了</p>



<pre class="wp-block-code"><code>nohup ./sergate 2&gt;1 &amp;
</code></pre>



<p>6.使用ip加端口访问，发觉可以正常收到服务器信息，我这里只改了一台阿里云的服务器，所有只接收到一台的信息，其他客户端可以依次下载GitHub的ServerStatus并设置即可，这里主要关注服务端</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="447" src="https://daoker.cc/wp-content/uploads/2023/03/image-20-1024x447.png" alt="" class="wp-image-1088" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-20-1024x447.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-20-300x131.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-20-768x335.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-20.png 1435w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1084.html/feed</wfw:commentRss>
			<slash:comments>33</slash:comments>
		
		
			</item>
		<item>
		<title>【入狱指南】机场面板v2board与XrayR后端三协议搭建，（支付系统、邮件系统、中转隧道只做了解）</title>
		<link>https://daoker.cc/jhjto935.html</link>
					<comments>https://daoker.cc/jhjto935.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 03:16:49 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[入狱系列]]></category>
		<category><![CDATA[奇奇怪怪]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[玩机]]></category>
		<category><![CDATA[甲骨文云]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=935</guid>

					<description><![CDATA[我的vps机器虽然不多，但是要用到上网服务的机器比较多，手机、平板、小主机、实验室台式双系统、笔记本电脑双系统 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>我的vps机器虽然不多，但是要用到上网服务的机器比较多，手机、平板、小主机、实验室台式双系统、笔记本电脑双系统、还有偶尔给朋友用，每次修改节点信息后，使用相关设备发觉使用不了，然后又要去开x-ui面板导入，非常的麻烦，于是就想到了机场的管理模式，只用更新订阅就行，于是打算自己给自己搭个机场用用。只做私用，销售和分享有入狱风险，哈哈哈。</p>



<p></p>



<p>v2board项目地址：</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="v2board" data-project="v2board"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/v2board/v2board" target="_blank" rel="noopener"><span class="github-info-card-name">v2board/v2board</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>文档：<a href="https://v2board.com/CHANGELOG.html" target="_blank" rel="noreferrer noopener">https://v2board.com/CHANGELOG.html</a></p>



<p>视频教程：</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://www.youtube.com/watch?v=V8of3uAfK1c
</div></figure>



<h2 class="wp-block-heading">v2board部署</h2>




<span style="color: red;">温馨提示：</span>此处内容仅管理员可见！




<h2 class="wp-block-heading">XrayR对接</h2>



<p>装了v2board后，我发觉只要更新订阅链接，然后节点的密码就会改变，并且把节点信息添加到v2board时也没有密码选项，然后仔细看了上面的视频，才知道，原来面板可以和后面的节点服务进行通信，我的x-ui不知道可不可以，但是视频用的XrayR貌似也挺方便。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="XrayR-project" data-project="XrayR"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/XrayR-project/XrayR" target="_blank" rel="noopener"><span class="github-info-card-name">XrayR-project/XrayR</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>




<span style="color: red;">温馨提示：</span>此处内容仅管理员可见！




<h2 class="wp-block-heading">acme.sh命令</h2>



<p>查看已经签名的证书：</p>



<pre class="wp-block-code"><code>./.acme.sh/acme.sh --list</code></pre>



<p>移除某个域名的证书：</p>



<p>./.acme.sh/acme.sh &#8211;remove -d [域名]</p>



<h2 class="wp-block-heading">报错解决</h2>



<p>1.rejected proxy/vmess/encoding: invalid user > proxy/vmess: Not Found</p>



<pre class="wp-block-code"><code>apt-get install -y ntp &amp;&amp; /lib/systemd/systemd-sysv-install enable ntp</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto935.html/feed</wfw:commentRss>
			<slash:comments>35</slash:comments>
		
		
			</item>
		<item>
		<title>【老司机必备】使用telegram_media_downloader将Telegram视频通过Bot下载到远程服务器，以本地黑群晖NAS为例</title>
		<link>https://daoker.cc/jhjto1164.html</link>
					<comments>https://daoker.cc/jhjto1164.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 28 Oct 2023 04:34:29 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[奇奇怪怪]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[机器人]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1164</guid>

					<description><![CDATA[在黑群晖上使用docker安装 下载配置文件 在Github项目仓库中下载以下文件到群辉中建立的telegra [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>概述</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="tangyoha" data-project="telegram_media_downloader"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/tangyoha/telegram_media_downloader" target="_blank" rel="noopener"><span class="github-info-card-name">tangyoha/telegram_media_downloader</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>
<cite><code><strong>telegram_media_downloader</strong></code>是一个支持下载音频、文档、照片、视频、视频笔记、语音的 Telegram 下载工具， 可以下载禁止转发和保存的文件哦<img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f47b.png" alt="👻" class="wp-smiley" style="height: 1em; max-height: 1em;" />。跨平台，支持web查看下载进度 ，支持bot下发指令下载，支持下载已经加入的私有群但是限制下载的资源</cite></blockquote>



<h2 class="wp-block-heading">在黑群晖上使用docker安装</h2>



<h3 class="wp-block-heading">下载配置文件</h3>



<p>在Github项目仓库中下载以下文件到群辉中建立的telegram_media_downloader的安装目录下</p>



<ul class="wp-block-list">
<li>config.yaml</li>



<li>data.yaml</li>
</ul>



<h3 class="wp-block-heading">拉取镜像并创建web服务容器</h3>



<p>在群辉docker注册表中搜索angyoha/telegram_media_downloader，拉取镜像并创建容器，群辉本地端口我设置的5008，容器本身的端口是5000，映射提前建立好文件夹如下：</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="989" height="295" src="https://daoker.cc/wp-content/uploads/2023/10/image.png" alt="" class="wp-image-1165" style="aspect-ratio:3.352542372881356;width:604px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image.png 989w, https://daoker.cc/wp-content/uploads/2023/10/image-300x89.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-768x229.png 768w" sizes="auto, (max-width: 989px) 100vw, 989px" /></figure>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="573" src="https://daoker.cc/wp-content/uploads/2023/10/image-1-1024x573.png" alt="" class="wp-image-1166" style="aspect-ratio:1.787085514834206;width:613px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-1-1024x573.png 1024w, https://daoker.cc/wp-content/uploads/2023/10/image-1-300x168.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-1-768x430.png 768w, https://daoker.cc/wp-content/uploads/2023/10/image-1.png 1078w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="528" height="358" src="https://daoker.cc/wp-content/uploads/2023/10/image-2.png" alt="" class="wp-image-1167" style="aspect-ratio:1.4748603351955307;width:528px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-2.png 528w, https://daoker.cc/wp-content/uploads/2023/10/image-2-300x203.png 300w" sizes="auto, (max-width: 528px) 100vw, 528px" /></figure>



<h3 class="wp-block-heading">配置config.yaml文件</h3>



<pre class="wp-block-code"><code>api_hash: **********************
api_id: **********
web_host: 0.0.0.0
bot_token: ****************************
file_formats:
  audio:
  - all
  document:
  - all
  video:
  - all
file_path_prefix:
- chat_title
- media_datetime
media_types:
- audio
- photo
- video
- document
- voice
- video_note
# in linux please use /
save_path: /app/downloads</code></pre>



<p>其中api_hash和api_id需要登录 <a rel="noreferrer noopener" href="https://my.telegram.org/apps" target="_blank">TG 开发者平台</a> 获取，bot_token可以通过电报机器人BotFather创建并获取</p>



<p><a href="https://github.com/tangyoha/telegram_media_downloader/wiki/%E4%B8%AD%E6%96%87%E6%95%99%E7%A8%8B#3-%E8%8E%B7%E5%8F%96-api_id-%E5%92%8C-api_hash">https://github.com/tangyoha/telegram_media_downloader/wiki/%E4%B8%AD%E6%96%87%E6%95%99%E7%A8%8B#3-%E8%8E%B7%E5%8F%96-api_id-%E5%92%8C-api_hash</a></p>



<p>发生错误可以多试几次，标题和短名字中尽量别出现空格</p>



<h3 class="wp-block-heading">创建下载服务容器并启动web服务容器</h3>



<p>连接上群辉的SSH,并执行如下命令，这里我第二步创建的容器名为tangyoha-telegram_media_downloader1，配置文件映射根据自己情况来</p>



<p>首先创建下载服务容器</p>



<pre class="wp-block-code"><code>docker run -itd --name telegram_media_downloader -v /volume1/docker/telegram_media/config.yaml:/app/config.yaml -v /volume1/docker/telegram_media/sessions/:/app/sessions tangyoha/telegram_media_downloader:latest
</code></pre>



<p>然后启动第2步时创建的容器，并根据提示输入你的手机号码（包含国家前缀） 和 验证码（来自TG客户端）。</p>



<pre class="wp-block-code"><code>docker start -i tangyoha-telegram_media_downloader1</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="980" height="296" src="https://daoker.cc/wp-content/uploads/2023/10/image-3.png" alt="" class="wp-image-1168" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-3.png 980w, https://daoker.cc/wp-content/uploads/2023/10/image-3-300x91.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-3-768x232.png 768w" sizes="auto, (max-width: 980px) 100vw, 980px" /></figure>



<p>打开web端验证下，同时只需将下载的连接或者内容转发给机器人就可以开始下载啦</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="283" src="https://daoker.cc/wp-content/uploads/2023/10/image-4-1024x283.png" alt="" class="wp-image-1169" style="aspect-ratio:3.618374558303887;width:632px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-4-1024x283.png 1024w, https://daoker.cc/wp-content/uploads/2023/10/image-4-300x83.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-4-768x213.png 768w, https://daoker.cc/wp-content/uploads/2023/10/image-4-1536x425.png 1536w, https://daoker.cc/wp-content/uploads/2023/10/image-4.png 1788w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="568" height="978" src="https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504.png" alt="" class="wp-image-1171" srcset="https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504.png 568w, https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504-174x300.png 174w" sizes="auto, (max-width: 568px) 100vw, 568px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1164.html/feed</wfw:commentRss>
			<slash:comments>19</slash:comments>
		
		
			</item>
		<item>
		<title>【科学上网】在VPS上搭建Hysteria服务端并在Openwrt中的Passwall上配置客户端</title>
		<link>https://daoker.cc/jhjto1175.html</link>
					<comments>https://daoker.cc/jhjto1175.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 28 Oct 2023 12:34:58 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1175</guid>

					<description><![CDATA[Hysteria1 由于我目前用的openwrt中的Passwall只支持到Hysteria1，更新Passw [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Hysteria1</h2>



<p>由于我目前用的openwrt中的Passwall只支持到Hysteria1，更新Passwall又会遇到内核和依赖等一堆问题，为了减少折腾，先搭建个Hysteria1玩一玩，等有空换了支持Hysteria2的Openwrt固件再尝试Hysteria.</p>



<p>首先参照Hysteria1的官方文档，看到支持docker安装，那二话不说果断选docker，详情见<a href="https://v1.hysteria.network/zh/docs/docker/">Docker | Hysteria</a></p>



<p>这次我选择在一台甲骨文云ARM服务器上使用docker-compose的方式安装，由于github和docker hub上的版本默认都是Hysteria2的，所以安装时要注意版本的选择。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="apernet" data-project="hysteria"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/apernet/hysteria" target="_blank" rel="noopener"><span class="github-info-card-name">apernet/hysteria</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>1.创建安装目录并新建docker-compose.yaml文件，配置文件内容</p>



<pre class="wp-block-code"><code>version: '3.9'
services:
  hysteria:
    image: tobyxdd/hysteria:v1.3.5
    container_name: hysteria
    restart: always
    network_mode: "host"
    volumes:
      - ./hysteria.json:/etc/hysteria.json
    command: &#91;"server", "--config", "/etc/hysteria.json"]</code></pre>



<p>2.配置证书申请的文件</p>



<pre class="wp-block-code"><code>cat &lt;&lt;EOF &gt; hysteria.json
{
  "listen": ":36752",
  "acme": {
    "domains": &#91;
      "hy.daoker.cc"
    ],
    "email": "jhjyes@163.com"
  },
  "obfs": "8ZuA2Zrtetr38ds45fdg7vMjD3267BwY",
  "up_mbps": 100,
  "down_mbps": 100
}
EOF</code></pre>



<p>3.使用docker-compose up -d创建并启动容器</p>



<h2 class="wp-block-heading">Hysteria2</h2>



<p>由于Hysteria1的教程文档较少，大多数脚本已经更新到Hysteria2，使用起来挺麻烦，上面的Hysteria1最终没能成功运用，于是我部署了Hysteria2，并在PVE里安装了windows,在windows中使用V2rayN的局域网共享功能，使得Passwall通过V2rayN使用Hysteria2,原因是我暂时没找到好用的支持Hysteria2的Passwall的OpenWRT，因此只能采用曲线救国的方法，下面记录Hysteria2的搭建过程：</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="apernet" data-project="hysteria"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/apernet/hysteria" target="_blank" rel="noopener"><span class="github-info-card-name">apernet/hysteria</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<h3 class="wp-block-heading">服务端配置</h3>



<p>首先从上面的github中下载Hysteria2的服务端到服务器，我这里服务器是ARM的，所以下载ARM的；</p>



<pre class="wp-block-code"><code>curl -Lo hysteria https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-arm64 &amp;&amp; chmod +x hysteria &amp;&amp; mv -f hysteria /usr/local/bin/</code></pre>



<p>然后就是域名证书的问题，我这里用x-ui的脚本申请了想使用的域名的证书，并记下了公钥和密钥存储路径；</p>



<p>创建并修改配置文件如下：</p>



<pre class="wp-block-code"><code>vim /root/hysteria_config.yaml</code></pre>



<pre class="wp-block-code"><code>listen: :443（这里改成自己想用的端口）

tls:
  cert: /root/cert/hy2.pornhug.top.cer（公钥路径）
  key: /root/cert/hy2.pornhug.top.key（密钥路径）

auth:
  type: password
  password: chika（自定义的密码）

masquerade:
  type: proxy
  proxy:
    url: https://www.lovelive-anime.jp（证书所对应的域名）
    rewriteHost: true

acl:
  inline: 
    - reject(all, udp/443)（这里的端口也记得修改）
</code></pre>



<p>验证是否搭建成功：curl &#8211;http3 https://hy2.pornhug.top -k</p>



<p>设置开机自启：</p>



<pre class="wp-block-code"><code>vim /etc/systemd/system/hysteria.service</code></pre>



<pre class="wp-block-code"><code>&#91;Unit]
After=network.target nss-lookup.target

&#91;Service]
User=root
WorkingDirectory=/root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/hysteria server -c /root/hysteria_config.yaml --log-level debug
Restart=on-failure
RestartSec=10
LimitNPROC=512
LimitNOFILE=infinity

&#91;Install]
WantedBy=multi-user.target</code></pre>



<p>启动服务</p>



<pre class="wp-block-code"><code>systemctl daemon-reload</code></pre>



<p>启动程序</p>



<pre class="wp-block-code"><code>systemctl enable --now hysteria
</code></pre>



<p>程序信息和常用命令：</p>



<figure class="wp-block-table"><table><tbody><tr><td>项目</td><td>内容</td></tr><tr><td>程序</td><td> /usr/local/bin/hysteria</td></tr><tr><td>配置 </td><td>/root/hysteria_config.yaml</td></tr><tr><td>重启 </td><td>systemctl restart hysteria</td></tr><tr><td>状态</td><td> systemctl status hysteria</td></tr><tr><td>查看日志 </td><td>journalctl -u hysteria -o cat -e</td></tr><tr><td>实时日志 </td><td>journalctl -u hysteria -o cat -f</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">客户端配置</h3>



<p>这里以windows端V2rayN为例，新建.yaml文件并输入以下内容，注意和服务端内容一一对应</p>



<pre class="wp-block-code"><code>server: 3.0.20.121:443

auth: chika

tls:
  sni: hy2.pornhug.top #如果你是自签证书则改为bing.com
  insecure: false #如果你是自签证书则改为insecure: true
fastOpen: true

#bandwith根据需求改，如果不写则默认bbr流控
bandwidth:
  up: 30 mbps
  down: 150 mbps
  
socks5:
  listen: 127.0.0.1:50000</code></pre>



<ul class="wp-block-list">
<li>下载 Windows 客户端程序 hysteria-windows-amd64.exe（这个下载地址也是和第一步一样，可以去 realease 里面找），重命名为 hysteria.exe，复制到 v2rayN\bin\hysteria 文件夹。</li>



<li>修改客户端配置，修改 hy.pornhug.top 为证书中包含的域名，修改 3.0.20.121 为 VPS 的 IP。</li>



<li>v2rayN：服务器 ——&gt; 添加自定义配置服务器 ——&gt; 浏览 ——&gt; 选择客户端配置 ——&gt; Core 类型 hysteria ——&gt; Socks 端口 50000</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="913" height="623" src="https://daoker.cc/wp-content/uploads/2023/11/image-6.png" alt="" class="wp-image-1189" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-6.png 913w, https://daoker.cc/wp-content/uploads/2023/11/image-6-300x205.png 300w, https://daoker.cc/wp-content/uploads/2023/11/image-6-768x524.png 768w" sizes="auto, (max-width: 913px) 100vw, 913px" /></figure>



<p>最新教程参考波仔的<a href="https://v2rayssr.com/hysteria2.html" target="_blank" rel="noreferrer noopener">Hysteria2节点搭建，抢占宽带，垃圾线路的救星！大幅提升稳定性！第二代歇斯底里Windows/iOS/安卓/MacOS/Openwrt全平台教程！</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1175.html/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Bitwarden迁移</title>
		<link>https://daoker.cc/jhjto1070.html</link>
					<comments>https://daoker.cc/jhjto1070.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Fri, 24 Mar 2023 03:45:03 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1070</guid>

					<description><![CDATA[Bitwarden 是一款开源密码管理器，它会将所有密码加密存储在服务器上，它的工作方式与 LastPass、 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://daoker.cc/wp-content/uploads/2023/03/image-13-1024x423.png" alt="" class="wp-image-1071" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-13-1024x423.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-13-300x124.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-13-768x317.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-13.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre id="block-2fc0a2c8-06e5-4248-8371-b31db72c70cd" class="wp-block-preformatted">Bitwarden 是一款开源密码管理器，它会将所有密码加密存储在服务器上，它的工作方式与 LastPass、1Password 或 Dashlane 相同。</pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="546" src="https://daoker.cc/wp-content/uploads/2023/03/image-14-1024x546.png" alt="" class="wp-image-1072" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-14-1024x546.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-14-300x160.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-14-768x410.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-14.png 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-preformatted">官方的版本搭建对服务器要求很高，搭建不容易，GitHub上有人用 Rust 实现了 Bitwarden 服务器，项目叫 vaultwarden，并且提供了 Docker 镜像，这个实现更进一步降低了对机器配置的要求，并且 Docker 镜像体积很小，部署非常方便。这个项目目前在GitHub也有9.8k的star，非常受欢迎。
此外，官方服务器中需要付费订阅的一些功能，在这个实现中是免费的。</pre>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="dani-garcia" data-project="vaultwarden"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/dani-garcia/vaultwarden" target="_blank" rel="noopener"><span class="github-info-card-name">dani-garcia/vaultwarden</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="772" height="614" src="https://daoker.cc/wp-content/uploads/2023/03/image-15.png" alt="" class="wp-image-1073" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-15.png 772w, https://daoker.cc/wp-content/uploads/2023/03/image-15-300x239.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-15-768x611.png 768w" sizes="auto, (max-width: 772px) 100vw, 772px" /></figure>



<p>我的Bitwarden原本在国外，后来ip被墙了无法使用，因此决定把它搬到国内。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="115" src="https://daoker.cc/wp-content/uploads/2023/03/image-16-1024x115.png" alt="" class="wp-image-1076" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-16-1024x115.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-16-300x34.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-16-768x86.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-16.png 1171w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>1.复制旧服务器上的挂载的目录文件到新服务器</p>



<p>2.docker run起来</p>



<pre class="wp-block-code"><code>docker run -d --name bitwardenrs \
  --restart unless-stopped \
  -e WEBSOCKET_ENABLED=true \
  -v /docker/bitwaden/:/data/ \
  -p 6687:80 \
  -p 3012:3012 \
  vaultwarden/server:latest</code></pre>



<p>3.设置域名解析和反向代理</p>



<h2 class="wp-block-heading">2024年2月21日再次迁移</h2>



<p>国内的阿里云服务器也到期了，续费又太贵，于是新换了1年的腾讯云。但是不想每年都迁移一次，还要涉及域名备案迁移等等特别麻烦，因此直接部署回本地的群辉上安心也放心。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1070.html/feed</wfw:commentRss>
			<slash:comments>33</slash:comments>
		
		
			</item>
		<item>
		<title>使用潘多拉GPT搭建ChatGPT镜像站点，实现免开梯子访问</title>
		<link>https://daoker.cc/daokerto1194.html</link>
					<comments>https://daoker.cc/daokerto1194.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Tue, 26 Dec 2023 13:16:07 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1194</guid>

					<description><![CDATA[年初我用过一个基于OpenAI官方的API搭建ChatGPT网页版的项目（https://daoker.cc/ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>年初我用过一个基于OpenAI官方的API搭建ChatGPT网页版的项目（<a href="https://daoker.cc/daokerto1002.html">https://daoker.cc/daokerto1002.html</a>），但是那个是基于GPT2.5的，且API有免费次数限制，今天这个项目是对官方网页版做了个镜像，功能完全一样，甚至还能注册。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="pandora-next" data-project="deploy"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/pandora-next/deploy" target="_blank" rel="noopener"><span class="github-info-card-name">pandora-next/deploy</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>看到项目有Docker版，那果断使用Docker搭建。</p>



<p>创建安装目录：</p>



<pre class="wp-block-code"><code>mkdir -p /home/docker/PandoraNext/{data,sessions}
cd /home/docker/PandoraNext/data</code></pre>



<p>下载配置文件：</p>



<pre class="wp-block-code"><code>wget https://raw.githubusercontent.com/kejilion/sh/main/PandoraNext/config.json
wget https://raw.githubusercontent.com/kejilion/sh/main/PandoraNext/tokens.json</code></pre>



<p>编辑配置文件：</p>



<p>参考作者的文档的介绍，</p>



<ul class="wp-block-list">
<li><a href="https://docs.pandoranext.com/zh-CN/configuration/config">https://docs.pandoranext.com/zh-CN/configuration/config</a></li>



<li><a href="https://docs.pandoranext.com/zh-CN/configuration/tokens">https://docs.pandoranext.com/zh-CN/configuration/tokens</a></li>
</ul>



<p>获取license_id：</p>



<p><a href="https://dash.pandoranext.com/">https://dash.pandoranext.com/</a></p>



<p>启动潘多拉容器：</p>



<pre class="wp-block-code"><code>docker run -d --restart always --name PandoraNext \
                            -p 8181:8181 \
                            -v /home/docker/PandoraNext/data:/data \
                            -v /home/docker/PandoraNext/sessions:/root/.cache/PandoraNext \
                            pengzhile/pandora-next</code></pre>



<p>然后使用IP地址加端口号就能访问页面，也可以自己给个域名。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="725" height="619" src="https://daoker.cc/wp-content/uploads/2023/12/image.png" alt="" class="wp-image-1195" srcset="https://daoker.cc/wp-content/uploads/2023/12/image.png 725w, https://daoker.cc/wp-content/uploads/2023/12/image-300x256.png 300w" sizes="auto, (max-width: 725px) 100vw, 725px" /></figure>



<p>其中session-token获取办法：</p>



<p>登录ChatGPT网页，点击“开发者工具”，进入Application栏，在Cookie下拉菜单找到chat.openai.com，就能看到Secure-next-auth.session-token的值</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1194.html/feed</wfw:commentRss>
			<slash:comments>37</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress添加redis加速</title>
		<link>https://daoker.cc/daokerto1144.html</link>
					<comments>https://daoker.cc/daokerto1144.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Tue, 01 Aug 2023 01:50:53 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1144</guid>

					<description><![CDATA[1.编辑docker-compose.yml文件，使用docker-compose up -d 命令部署red [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>1.编辑docker-compose.yml文件，使用docker-compose up -d 命令部署redis容器</p>



<pre class="wp-block-code"><code>version: '3.0'

services:
  redis:
    image: redis:alpine
    container_name: wordpress-redis
    restart: unless-stopped
    volumes:
      - ./redis-data:/data
    networks:
      - persist

networks:
  persist:
    external:
      name: daoker_net</code></pre>



<p>2.在WordPress所在的容器中执行下列命令行，安装redis</p>



<pre class="wp-block-code"><code>pecl install redis
echo "extension=redis.so" > /usr/local/etc/php/conf.d/docker-php-ext-redis.ini</code></pre>



<p>3.修改wp-config.php文件,在其中添加如下代码</p>



<pre class="wp-block-code"><code>define('WP_REDIS_HOST', 'wordpress-redis');
define('WP_REDIS_PORT', '6379');</code></pre>



<p>4.安装redis插件</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1144.html/feed</wfw:commentRss>
			<slash:comments>40</slash:comments>
		
		
			</item>
	</channel>
</rss>
