前提条件

Bridge服务器:域名 bridge.xxx.com

Relay服务器:

公网域名:relay.xxx.com

内网域名

客户端

使用规则

通过Bridge访问Relay服务器

用户可以通过Bridge服务器访问Relay服务器,使用格式:bridge.xxx.com/relay.xxx.com

使用PubKey通过Bridge访问Relay服务器

用户可以通过Bridge服务器访问Relay服务器,使用格式:bridge.xxx.com/pubkey/[PubKey]

这需要Relay服务器先注册到Bridge服务器

通过PubKey访问内网Relay服务器

用户可以通过Bridge服务器+PubKey访问内网Relay服务器,使用格式:bridge.xxx.com/pubkey/[PubKey]

这需要内网Relay服务器先注册到Bridge服务器

直接访问Relay公网服务器

用户可以直接访问Relay公网服务器,但无法直接访问内网Relay服务器

Reply to this note

Please Login to reply.

Discussion

有可以试用的服务吗?

wss://bridge.duozhutuan.com, 你可以去github.com/duozhutuan/nostrbridge 下载一个客户端。把你的内网 服务器注册进来,再通过 wss://bridge.duozhutuan.com/pubkey/[pubkey] 访问你的内网relay服务器了。

502 Invalid action or missing parameters 🤣 返回的数据格式不太符合 NIP 协议,这种可以返回 NOTICE 类型的消息

我的 nostr-relay-tray 也有个代理的功能,但感觉用的人不多打算下掉了