<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Matrix on CuSO4_Deposit</title><link>https://depoze.xyz/tags/matrix/</link><description>Recent content in Matrix on CuSO4_Deposit</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 28 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://depoze.xyz/tags/matrix/index.xml" rel="self" type="application/rss+xml"/><item><title>Configure Maunium Stickerpicker for Element</title><link>https://depoze.xyz/pages/element-stickerpicker/</link><pubDate>Sun, 05 May 2024 00:00:00 +0000</pubDate><guid>https://depoze.xyz/pages/element-stickerpicker/</guid><description>&lt;p&gt;&lt;a href="https://github.com/maunium/stickerpicker"&gt;GitHub - maunium/stickerpicker: A fast and simple Matrix sticker picker widget&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="maintainer-side"&gt;Maintainer side&lt;/h2&gt;&#10;&lt;h3 id="install"&gt;Install&lt;/h3&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;% cd stickerpicker&#10;% pip install .&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If encountered env KeyError in Windows, refer to &lt;a href="https://github.com/maunium/stickerpicker/issues/52"&gt;issue #52&lt;/a&gt;:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;# setup.py&#10;long_desc = open(&amp;#34;README.md&amp;#34;, encoding=&amp;#34;utf-8&amp;#34;).read()&#10;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;% $env:HOME = $env:USERPROFILE&#10;% pip install .&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id="create-decks"&gt;Create decks&lt;/h3&gt;&#10;&lt;p&gt;Put the stickers into an arbitory folder. Call &lt;code&gt;sticker-import /path/to/dir --add-to-index ./web/packs&lt;/code&gt;. (&lt;code&gt;python3 -m sticker.import ...&lt;/code&gt; if in Windows)&lt;/p&gt;&#10;&lt;p&gt;The script will prompt for homeserver and access_token, both can be found in &lt;code&gt;All Settings &amp;gt; Help &amp;amp; About&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Configure Maubot</title><link>https://depoze.xyz/pages/maubot/</link><pubDate>Thu, 18 May 2023 00:00:00 +0000</pubDate><guid>https://depoze.xyz/pages/maubot/</guid><description>&lt;p&gt;&lt;a href="https://github.com/maubot/maubot"&gt;Maubot&lt;/a&gt; 是一款基于插件的Matrix-Bot SDK。&lt;/p&gt;&#10;&lt;p&gt;它的说明文档写得并不是很好，也没有给出一个合理的顺序安装过程，事实上在我安装时需要在文档的各节反复跳跃，因此我在此记录一个合理的配置流程。&lt;/p&gt;&#10;&lt;h2 id="配置环境"&gt;配置环境&lt;/h2&gt;&#10;&lt;p&gt;通过pip安装maubot。&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ python3 -m venv maubotVenv&#10;$ source ./maubotVenv/bin/activate&#10;$ pip install --upgrade maubot&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;添加必要的文件和目录，否则会报错&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ vim config.yaml&#10;$ mkdir plugins, trash, logs&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;config.yaml似乎怎么写都可以（但是不写就会报错），我参考了&lt;a href="https://github.com/maubot/maubot/blob/master/examples/config/base-config.yaml"&gt;maubot/base-config.yaml at master · maubot/maubot · GitHub&lt;/a&gt;，但事实上它好像并不是给这里用的，而是给插件用的。总之过一会运行起来之后会覆盖它生成含有表项的yaml。&lt;/p&gt;&#10;&lt;h2 id="运行以生成可填写的config"&gt;运行以生成可填写的config&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ python3 -m maubot&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;它会在29316端口运行一个web界面。进入会发现需要登录，而此时还没有配置credential。不过现在按&lt;code&gt;&amp;lt;C-C&amp;gt;&lt;/code&gt;停止运行，打开config.yaml就会看到很多配置项。&lt;/p&gt;&#10;&lt;h2 id="配置nginx"&gt;配置nginx&lt;/h2&gt;&#10;&lt;p&gt;如果在config.yaml更改了路径，则填写对应的新路径。没有https的可以改为listen 80.&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;# nginx.conf&#10;&#10;server {&#10; listen 443;&#10; ...&#10; location /_matrix/maubot/v1/logs {&#10; proxy_pass http://localhost:29316;&#10; proxy_http_version 1.1;&#10; proxy_set_header Upgrade $http_upgrade;&#10; proxy_set_header Connection &amp;#34;Upgrade&amp;#34;;&#10; proxy_set_header X-Forwarded-For $remote_addr;&#10; }&#10;&#10; location /_matrix/maubot {&#10; proxy_pass http://localhost:29316;&#10; proxy_set_header X-Forwarded-For $remote_addr;&#10; }&#10; ...&#10;}&#10;&#10;}&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;检查conf，重启nginx。&lt;/p&gt;</description></item></channel></rss>