Avoiding IPs getting leaked to relays would be nice.
But this might already be solved soon.
quotingAfter several weeks of persistent effort, I'm excited to share Nostr Web Services (NWS).
note1eu0…n396
NWS makes your web service reachable without having a publicly accessible IP address or DNS. All you need is an npub and a set of Nostr relays. A wide range of existing services could be run on NWS without requiring any significant changes. NWS achieves this by establishing a TCP connection between client and server which can be used by these applications.
Please keep in mind, that the software is in a very early state and not even released yet.
https://github.com/asmogo/nws