Haven v1.0.0 - now with Blossom Media Server!

Take full control of your media by running your own blossom media server with #haven.

What's new in v1.0.0

- Blossom Support

- Adds Gift Wrapped DM Support

- Removes Kind 4 DM Support

- GCP Backup Support

- Adds Delete Event Support to Inbox Relay

- Other Bug fixes and enhancements

We are yoloing to v1.0.0 because this is now the ultimate personal relay, what else could you need?

Enjoy nostr, h/t nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 for adding blossom to khatru.

Get started today at https://github.com/bitvora/haven

PS: nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z please add blossom upload support to amethyst brother <3

Reply to this note

Please Login to reply.

Discussion

when v1.1? lol

Probably tomorrow when everyone gives me their bug reports

Amethyst let's you specify a media server. Does Haven support a way to just add as amedia server ala nip96?

Nope blossom only

I want to implement nip96 in go but it's kind of a big undertaking.

According to my dad fiatjaf, blossom is much better

It is... So is the big undertaking even worth it. Or just wait for more clients to implement blossom...

Just steal fiatjaf code 🀠🀠 that's what I do

Yo estoy intentando aprender a poder acceder a mi servidor ubuntu mediante un dominio comprado, mientras aprendo a manejar el servidor claro... Es dura esta madriguera πŸ˜•

Oh shit.

#haven hits version 1.0, adds a wide variety of new features!

i second adding blossom support to nostr:npub1nz64zngcqm8vj8nhrdkcjpfwn2rcaqysnxec88tqfclp5afrpglsqm0w5y plz halp nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z

nostr:note1qqqr2d8gdlt4kjc84p956myrks6uk5fl8gxu3j0g96lc83d8avqqmqdm8t

How does one access their Blossom server for upload?

Nostrudel has it right now, ideally harass your client dev to add support 🀠

do i just add my relay url there as the blossom server url? i.e. https://nostr-relay.derekross.me because im getting errors when trying to upload via nostrudel.

Probably cors

Khatru should be handling the CORS but no one ever knows how to do that and I forgot to test so please send a patch.

I host with cloudflare so needed to do it there, it would ignore khatru anyway πŸ˜…

I will look tomorrow

so i shouldn't be adding cors headers to my nginx config?

either way i added them and it still errors for me.

add_header 'Access-Control-Allow-Origin' '*';

add_header 'Access-Control-Expose-Headers' '*';

add_header 'Access-Control-Allow-Headers' 'Authorization,*';

add_header 'Access-Control-Allow-Methods' 'GET, PUT, DELETE';

Nostrudle says:

Cannot read properties of undefined (reading 'url')

when I try to upload an image.

Pls Open up web dev tools in browser, open network console and network tab, let me see raw errors, ty sir we'll fix it

Also double check you set the new blossom_path .env per the example .env

i fixed it. i removed the upstream server's headers.

proxy_hide_header Access-Control-Allow-Origin;

Best cors testing site I've found https://cors-test.codehappy.dev/

So I have to start blossom server separately?

Nope

How to access it?

You're so quick! I saw your note this morning about adding this feature, and it's already shipped. Congrats man!

I'm also planning to add this to my paywall services. It works great for static website hosting too.

Let me know if you have any suggestions.

Add what exactly to paywall?

Blossom Media Server for direct file upload on zPay.live

I recently learned about the Blossom Media Server, though I haven’t deployed or integrated it yet. I have a question:

If I understand correctly, it offers two upload options: one encrypted and one unencrypted, which is publicly shareable. Can someone access the unencrypted, publicly shareable content without its unique URL?

One of the best notes I’ve seen this week.

Dammit, I just got strfry going on my own relay, and now I learn about this??? Back to the keyboard I guess.

Strfry is the best to run a public relay

Haven is the best for a personal relay

The acronym HAVEN tells me it could work for a media heavy public relay. But I don't know under the hood. So, thoughts?

Strfry - Public relay

Haven - private relay

blossom not working for me. I get error 400

Would blossom work as onion?

Looking forward to trying this out!

nostr:note1qqqr2d8gdlt4kjc84p956myrks6uk5fl8gxu3j0g96lc83d8avqqmqdm8t

πŸ‘€

i offer 10000k sats bounty for an umbrel module

Umbrel is tor only by default?

No, you can activate it but if you want tor by default, install StartOS.

No, umbrel is not tor only.

Ok.. Mine doesn't allow clearnet incoming connections as default. Never got around opening it so can't use clearnet services...

Damn, you won the race, I'm also working on integrare Blouson in my relay! Haha

Btw, cool!

https://github.com/fiatjaf/khatru/commit/91e7737ec12483118365a2ab616786a212f5d5b0

Ah, damn, and I was integrating it from scratch haha

It wasn't even released yet, the guy is too fast!

Hahaha I see

Paid blossom in go coming soon

Just installed v1.0.0. on a fresh vm. Importing notes now.

I hope it will run well.

I did not look but do I need to configure blossom server separately?

So I installed v1. Set everything in the .env (changed the npub, and relay address as well as names. Left everything else as is.)

Started import. It worked fine.

Now restarted haven service. Systemctl log shows me that that it started up and is now "subscribing to inbox". Is this correct? I still can't reach it in amethyst or websocketking.

OMG YES!!!

I’m so thankful for this!

What's required for a nostr client to support?

Containerised version updated: https://github.com/aaccioly-open-source/haven/

I think I've finally got the CORS stuff sorted, but I'm running a weird setup and can't fully verify. If you can't upload files, either add extra headers to Nginx at your own risk or complain to nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hszxmhwden5te0wfjkccte9emk2um5v4exucn5vvhxxmmd9uq3xamnwvaz7tmhda6zuat50phjummwv5hsx7c9z9 to get it fixed in Khatru.

Also, if you're proxying traffic through Cloudflare, don’t serve videos, or they’ll eventually restrict your service. (You’ve been warned.)

I won’t be checking Nostr over the next few days, so if you need help, open an issue in my repo. Don’t bother nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpz4mhxue69uhhyetvv9ujuat50phjummwv5hszymhwden5te0wahhgtn4w3ux7tn0dejj7qg4waehxw309an8yetwwvh82arcduhx7mn99uuwx66a unless you’ve confirmed the issue on bare metal hardware.

nostr:nevent1qqsqqqp4xn5xl46mfvr6sj6ddjpmgdwt2yln5rwge85za0urckn7kqqprdmhxue69uhksctkv4hzuctrvd5k7mre9eek7cmfv9kz7q3qutx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4sxpqqqqqqzrkvh5n

Any chance we gonna see haven in #StartOS any time soon?

It's really not ideal to run through Tor or expose your home IP imo

If your media is on Tor most users won't be able to see it

Oh you're right 🎯