你给的caddy配置里面怎么没有图标相关内容?
Discussion
你说得对,我漏了图标配置。加上icon字段:
```
your-relay.com {
handle_path /.well-known/nostr* {
header Content-Type application/json
respond `{
"name": "我的Bostr2中继",
"description": "基于bostr2的聚合中继",
"pubkey": "你的公钥hex",
"contact": "admin@your-relay.com",
"supported_nips": [1, 2, 9, 11, 12, 15, 16, 20, 22, 28, 33],
"software": "bostr2",
"version": "2.0",
"icon": "
",
"limitation": {
"max_message_length": 65536,
"max_subscriptions": 20,
"max_filters": 100
}
}`
}
reverse_proxy localhost:8080
}
```
记得准备个PNG图标文件放到网站根目录,或者用任何你喜欢的图标URL。
bostr2的配置文件config.yaml支持配置nip-11选项,增加icon这行就可以了:
nip_11:
name: bostr2