<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>首页 on CometDust Blog</title><link>https://blog.codu.tech/</link><description>Recent content in 首页 on CometDust Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 10 May 2023 01:00:00 +0000</lastBuildDate><atom:link href="https://blog.codu.tech/index.xml" rel="self" type="application/rss+xml"/><item><title>折腾flutter-elinux的一些备忘录</title><link>https://blog.codu.tech/posts/2023/05/flutter-elinux/</link><pubDate>Wed, 10 May 2023 01:00:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2023/05/flutter-elinux/</guid><description>&lt;h2 id="错误python3-no-such-file-or-directory">错误：python3: No such file or directory&lt;/h2>
&lt;p>&lt;code>工作目录/build/tmp/work/x86_64-linux/depot-tools-native/1.0-r0/git/bootstrap_python3: line 32: bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: No such file or directory&lt;/code>&lt;/p>
&lt;p>代表tools没有update成功，可能是网络原因。&lt;/p></description></item><item><title>authelia配合nginx实现登录认证，其实authlia搭建起来没有那么复杂</title><link>https://blog.codu.tech/posts/2023/02/authelia-with-nginx-for-login-authentication/</link><pubDate>Mon, 06 Feb 2023 01:00:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2023/02/authelia-with-nginx-for-login-authentication/</guid><description>&lt;h3 id="需求">需求&lt;/h3>
&lt;p>某个后台管理平台需要添加账号登录功能，需要实现以下需求&lt;/p>
&lt;p>&lt;a href="https://www.example.com/">https://www.example.com/&lt;/a> 平台地址，如果未登录则跳转到登录页面&lt;/p>
&lt;p>&lt;a href="https://www.example.com/auth/">https://www.example.com/auth/&lt;/a> 登录页面，使用authelia&lt;/p>
&lt;p>nginx，authelia，后台管理平台服务均为由docker-compose定义的服务文件，也就是三个docker-compose文件。&lt;/p>
&lt;p>authelia使用文件的形式存储用户表，数据库使用SQLite，并使用redis作为缓存。&lt;/p>
&lt;h3 id="开始搭建">开始搭建&lt;/h3>
&lt;p>首先创建一个docker的网络nginx_master，所有nginx需要反代的服务都连接到该网络内，这样每个服务不需要再使用宿主机的端口，更安全也更方便维护。&lt;/p></description></item><item><title>Unity2021编译到iOS，在M1芯片闪退报错EXC_BAD_ACCESS的问题</title><link>https://blog.codu.tech/posts/2022/04/unity2021-build-to-ios-crash-on-m1-chip/</link><pubDate>Sun, 24 Apr 2022 03:00:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2022/04/unity2021-build-to-ios-crash-on-m1-chip/</guid><description>&lt;p>项目是从HDRP转到URP的。&lt;/p>
&lt;p>编译到iOS的xcode项目，在m1 pro芯片的macbook中的模拟器运行时，直接闪退报错EXC_BAD_ACCESS。&lt;/p></description></item><item><title>actix-web websocket对已分块的数据包的支持</title><link>https://blog.codu.tech/posts/2022/04/rust-actix-web-websocket-support-for-chunked-packets/</link><pubDate>Thu, 07 Apr 2022 03:00:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2022/04/rust-actix-web-websocket-support-for-chunked-packets/</guid><description>&lt;p>根据websocket协议，在数据包过大的情况下，会把包分块发送。服务端需要把接收到的分块包拼接起来 (&lt;a href="https://stackoverflow.com/questions/25407306/websocket-protocol-continuation-frame">相关链接&lt;/a>)。&lt;/p>
&lt;p>而actix-web-actors的ws模块默认不会自动合并分块的数据包，需要手动进行合并。&lt;/p></description></item><item><title>rust使用serde自动转换DateTime为时间戳</title><link>https://blog.codu.tech/posts/2021/02/rust-serialize-datetime-to-timestamp/</link><pubDate>Sat, 20 Feb 2021 01:00:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2021/02/rust-serialize-datetime-to-timestamp/</guid><description>&lt;p>默认情况下，chrono::DateTime不支持serde的序列化与反序列化。&lt;/p></description></item><item><title>apisix-dashboard自定义etcd前缀与关闭ssl校验</title><link>https://blog.codu.tech/posts/2021/02/apisix-dashboard-custom-etcd-prefix-and-disable-ssl-verify/</link><pubDate>Thu, 04 Feb 2021 22:03:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2021/02/apisix-dashboard-custom-etcd-prefix-and-disable-ssl-verify/</guid><description>&lt;p>apisix-dashboard(2.3)目前还不支持自定义etcd读写时的前缀, 并且也不支持关闭对etcd的ssl校验.
但可以在apisix-dashboard与etcd之间加一个 &lt;code>etcd grpc-proxy&lt;/code> 来实现.&lt;/p>
&lt;p>apisix-dashboard -&amp;gt; etcd grpc-proxy(负责重写前缀,忽略证书校验) -&amp;gt; etcd(原本的etcd服务端)&lt;/p></description></item><item><title>apisix 2.2中的ssl.verify配置项无效问题</title><link>https://blog.codu.tech/posts/2021/02/apisix-2-2-ssl-verify-invalid/</link><pubDate>Wed, 03 Feb 2021 10:18:00 +0000</pubDate><guid>https://blog.codu.tech/posts/2021/02/apisix-2-2-ssl-verify-invalid/</guid><description>&lt;p>apisix 2.2, 在etcd使用了自签名证书的情况下, 启动时会报错:
&lt;code>got malformed version message: &amp;quot;&amp;quot; from etcd&lt;/code>
尽管apisix的配置项 &lt;code>etcd.ssl.verify&lt;/code> 已经为 &lt;code>false&lt;/code> 了.&lt;/p></description></item></channel></rss>