<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/rss/stylesheet/" type="text/xsl"?>
<rss xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:taxo='http://purl.org/rss/1.0/modules/taxonomy/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:podbridge='http://www.podbridge.com/podbridge-ad.dtd' version='2.0'>
<channel>
  <title>Su&apos;s Blog</title>
  <language>zh-cn</language>
  <generator>microfeed.org</generator>
  <itunes:type>episodic</itunes:type>
  <itunes:explicit>false</itunes:explicit>
  <atom:link rel="self" href="https://blog.0ne.day/rss/" type="application/rss+xml"/>
  <link>https://blog.0ne.day</link>
  <description>
    <![CDATA[<a rel="me" href="https://mastodon.0ne.day/@su">Mastodon</a>]]>
  </description>
  <itunes:author>Su</itunes:author>
  <itunes:image href="https://blog-media.0ne.day/blog-one-day/production/images/channel-5d1415959252c8d61e9adb7cbe424d6c.png"/>
  <image>
    <title>Su&apos;s Blog</title>
    <url>https://blog-media.0ne.day/blog-one-day/production/images/channel-5d1415959252c8d61e9adb7cbe424d6c.png</url>
    <link>https://blog.0ne.day</link>
  </image>
  <item>
    <title>huntly部署</title>
    <guid>Ur5XbBstplk</guid>
    <pubDate>Mon, 06 Mar 2023 13:25:43 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<ul><li>自建 huntly</li><li>建议：</li><li class="ql-indent-2">启动端口默认监听 0.0.0.0:8080 ，添加参数修改为只监听本地自定义端口：/usr/bin/java -Xms128m -Xmx2048m -jar huntly.jar --server.address=127.0.0.1 --server.port=10001</li><li class="ql-indent-1">扩展支持Firefox</li><li>服务端配置：</li><li>创建运行用户</li></ul><pre class="ql-syntax" spellcheck="false">sudo useradd -r -s /sbin/nologin huntly

</pre><ul><li>创建程序目录及部署前后端文件</li></ul><pre class="ql-syntax" spellcheck="false">sudo mkdir -p /opt/huntly/
sudo wget https://github.com/lcomplete/huntly/releases/download/0.1.0/huntly-server-client-0.1.0-SNAPSHOT.jar -O /opt/huntly/huntly.jar
sudo chown -R huntly: /opt/huntly

</pre><ul><li>添加 systemd 服务配置并启动</li><li>vim /etc/systemd/system/huntly.service</li></ul><pre class="ql-syntax" spellcheck="false">[Unit]
Description=huntly reader
After=network.target

[Service]
Type=simple
User=huntly
WorkingDirectory=/opt/huntly
ExecStart=/usr/bin/java -Xms128m -Xmx2048m -jar huntly.jar --server.address=127.0.0.1 --server.port=10001
Restart=on-failure

[Install]
WantedBy=multi-user.target

</pre><ul><li class="ql-indent-3">启动并设置开机启动服务：sudo systemctl enable --now huntly.service</li><li class="ql-indent-2">实时查看日志：sudo journalctl -fu huntly.service</li><li>Web server</li><li>我用的caddy</li></ul><pre class="ql-syntax" spellcheck="false">huntly.example.com {
	reverse_proxy localhost:10001
}

</pre><ul><li>如果用nginx</li><li class="ql-indent-1">后端前端合到一起了，直接一行反向代理就行了</li><li>客户端配置</li><li class="ql-indent-2">下载 <a href="https:github.com/lcomplete/huntly/releases/download/0.1.0/browser-extension.zip" rel="noopener noreferrer" target="_blank">https://github.com/lcomplete/huntly/releases/download/0.1.0/browser-extension.zip</a> 解压</li><li class="ql-indent-2">chrome 扩展设置 chrome:/<em>extensions</em> 中右上角打开开发者模式，load-unpacked 选择解压的文件夹</li><li class="ql-indent-1">huntly 扩展右键 option，server url中填写web server中配置的域名，如 ：https://huntly.example.com</li></ul>]]>
    </description>
    <link>https://blog.0ne.day/i/huntly-Ur5XbBstplk/</link>
    <itunes:episodeType>full</itunes:episodeType>
  </item>
</channel>
</rss>