摘要: 一、安装OpenObserve和Otel-collector 使用docker-compose 安装 记得替换下USER_MAIL xxx@xx.com和PASSWORD xxx 这里解释下为啥要用named volume来映射openobserve的data目录,因为目前版本(0.7.2)在win 阅读全文
posted @ 2024-01-03 15:54 turingguo 阅读(847) 评论(0) 推荐(1)
摘要: 系统环境 wsl debian11 目标环境 arm64 musl 即 aarch64-linux-musl (小爱音箱pro的系统就是基于openwrt,对应的平台就是这个) 步骤 安装target rustup target install aarch64-unknown-linux-musl 阅读全文
posted @ 2023-05-16 21:58 turingguo 阅读(1288) 评论(0) 推荐(0)
摘要: 背景 由于路由器openwrt的限速不太好用,所以需要到设备上去进行限速设置,这里使用wondershaper 使用 下载安装wondershaper wget https://ghproxy.com/https://github.com/magnific0/wondershaper/archive 阅读全文
posted @ 2023-05-03 11:12 turingguo 阅读(484) 评论(0) 推荐(0)
摘要: 使用加密dns不会被拦截修改,也不容易受到dns污染 管理员打开powershell/终端 添加OpenDNS和DNSPod到dns列表 netsh dns add encryption 208.67.222.222 "https://208.67.222.222/dns-query" no no 阅读全文
posted @ 2022-02-16 12:30 turingguo 阅读(1903) 评论(0) 推荐(0)
摘要: 自建email服务器的一个好处是可以无限发邮件,而qq邮箱 163邮箱等一般都有每日发送上限。 docker-mailserver是一个轻量级的邮件服务器,一般只用来发送邮件,接收邮件的推荐做法是通过设置额外邮箱转发到指定的邮箱,比如你自己的qq邮箱。 目前最新版本是10.4.0,日常占用仅100M 阅读全文
posted @ 2022-01-14 16:36 turingguo 阅读(11019) 评论(0) 推荐(0)
摘要: 下载Caddy caddy官网下载地址https://caddyserver.com/download。也可以直接点此下载linux amd64版本。 目前最新版本为v2.9.0-beta.3 如果是需要申请泛域名证书则需要勾选对应dns提供商的插件,比如cloudflare 注意:cloudfla 阅读全文
posted @ 2022-01-12 16:00 turingguo 阅读(19501) 评论(0) 推荐(2)
摘要: 目前nerdctl最新版是2.1.2, containerd 2.0 nerdctl-full-2.1.2中包含了containerd 2.0,cni, nerdctl,所以直接下载这个包即可,如果nerdctl有更新,可以把以下代码中的2.1.2替换为对应版本号即可 对于root用户 wget h 阅读全文
posted @ 2022-01-10 16:12 turingguo 阅读(1323) 评论(0) 推荐(0)
摘要: 下载[NoLsp.exe](https://files.cnblogs.com/files/turingguo/NoLsp.zip),用管理员权限运行 `.\NoLsp.exe C:\Windows\System32\wsl.exe`,显示 success则操作成功,再打开wsl2 就可以了。 具体 阅读全文
posted @ 2021-12-22 09:34 turingguo 阅读(3200) 评论(0) 推荐(1)
摘要: 健康检查和度量接口的大量请求会产生许多不必要的请求日志,因此在配置serilog的时候可以对请求路径为/heathz和/metrics不进行日志记录。配置如下 new LoggerConfiguration() .Filter.ByExcluding( e => e.Properties.TryGe 阅读全文
posted @ 2021-12-17 16:13 turingguo 阅读(234) 评论(0) 推荐(0)
摘要: 小程序前端上传文件不建议直接引用minio的js npm包,一来是这个包本身较大,会影响小程序的体积,二来是ak sk需要放到前端存储,不够安全,因此建议通过请求后端拿到签名数据后上传。 由于小程序的uploadFile仅支持POST请求(估计以后也不会支持PUT了),因此只能使用minio的Pre 阅读全文
posted @ 2021-12-13 10:07 turingguo 阅读(2754) 评论(0) 推荐(0)