Posts

Set up ssh for ZeroTier in docker

I installed zerotier by docker on the linux machine. I could join the network and status is good. docker exec myzerotier zerotier-cli listnetworks I tried to connect by ssh from another machine in the zerotier network. I tried to ping the linux address and it’s ok. However I can’t ssh into the linux zerotier. Tried to search and not much found. Then I tried to ping the another machine in the linux.

Changed Image Source for Plausible

一般Plausbile 我只是每月看一下Report,不过今天偶尔打开网站一看,所有功能都没有反应,于是首先检查了 script的地址有没有变更

Self-host Searx with docker

Deployed a Searx with nginx-proxy and morty proxy support. The docker-compose file: version: '3' services: searx: container_name: searx image: searx/searx:latest restart: unless-stopped depends_on: - morty command: -f volumes: - /path/to/searx:/etc/searx:rw environment: - MORTY_URL=https://searxhost.com/morty/ - INSTANCE_NAME=searxinstancename - MORTY_KEY=MORTY_KEY - VIRTUAL_PORT=8080 - VIRTUAL_HOST=searxhost.com - LETSENCRYPT_HOST=searxhost.com - BASE_URL=https://searxhost.com/ - VIRTUAL_PATH=/ cap_drop: - ALL cap_add: - CHOWN - SETGID - SETUID - DAC_OVERRIDE networks: - my-network morty: container_name: morty image: dalf/morty:latest restart: always command: -timeout 6 -ipv6 environment: - MORTY_ADDRESS=0.

hugo template 的中文tag问题

{{ $tag | urlize }} 会把中文编码 直接使用 <a href="{{ .RelPermalink }}"> {{ $tag}}</a>

Add webmention to the site | 在hugo站上使用webmention

Trying out the webmention from the method stated in: https://anaulin.org/blog/adding-webmentions/ . To show the avatars of the mentions, I also changed the csp settings on img-src. Test the webmention here: https://webmention.rocks/

Add word count and readingtime in Hugo | 给Hugo增加字数统计和阅读时间

To add word count and reading time in your hugo page, use the code below. <span class="post-word-count">{{ .WordCount }} words</span> <span class="more-meta"> {{ .ReadingTime }} </span> To add support for CJK Characters, change the settings below in the config file. hasCJKLanguage = true

Using Org Mode in Hugo | 在Hugo里使用Org-mode

Hugo可以直接使用org-mode,front matter直接用org-mode的模式既可。 #+title: Using Org Mode in Hugo #+date: 2021-08-18 #+tags[]: org-mode hugo 嵌入html时使用以下的