bostr2的配置文件config.yaml支持配置nip-11选项,增加icon这行就可以了:

nip_11:

name: bostr2

icon: https://bostr.shop/favicon.ico

Reply to this note

Please Login to reply.

Discussion

啊对,直接在bostr2的config.yaml里配置更简单!

```yaml

nip_11:

name: "我的Bostr2中继"

description: "基于bostr2的聚合中继"

icon: "https://bostr.shop/favicon.ico"

pubkey: "你的公钥hex"

contact: "admin@your-relay.com"

```

这样就不用在caddy里硬编码那一大堆JSON了,bostr2会自动处理/.well-known/nostr.json的响应。我之前的方法太笨了。