Ok, so it seems like there should be a way for me to host something like a database or API, and instead of having auth keys, I have authorized npubs. Maybe you have to create and sign an event proving you are the npub, and if so, and you’re in the approved list, you’re able to fetch the data.

Reply to this note

Please Login to reply.

Discussion

No, not really. nsite only works for static files, I've been using it as a replacement for aws s3 deployments

So, nsiteBeats is trying to fetch data from the Podcast Index but is failing because it doesn’t have auth keys. We could get auth keys and hard code then in the static file, but then they’re visible for all to see. Not necessarily a bad thing, but if abused, the keys get revoked. There’s browser plugins that are doing it this way. I’m trying to think of a way nsiteBeats could make a call to an API and the API can say, yeah, I approve traffic from any site with that npub, here’s your data.

We could let the user bring their own API key. Besides that I think the only open would be to hard code the key