Post AZWg2PtAfXdl70GCf2 by parker@pl.psion.co
 (DIR) More posts by parker@pl.psion.co
 (DIR) Post #AZWb0hYNWPpxY1ti88 by alex@gleasonator.com
       2023-09-07T13:11:03.719794Z
       
       2 likes, 1 repeats
       
       So should I make Ditto upload to an s3 compatible bucket or IPFS? I kind of want one way of doing things for the first release before adding configurable media stuff.S3 means you need to run Minio or a cloud service. Ipfs means you need to run a local ipfs gateway.I'm not gonna support local file uploads. Ipfs would be the closest thing.
       
 (DIR) Post #AZWbQeSJf61lTAR5ZA by unknown@seal.cafe
       2023-09-07T13:15:01.810230Z
       
       0 likes, 0 repeats
       
       s3 makes more sense
       
 (DIR) Post #AZWbQfBgwOK7jtfKIC by alex@gleasonator.com
       2023-09-07T13:15:53.522207Z
       
       0 likes, 0 repeats
       
       @unknown Because of the reliability and CDN support?
       
 (DIR) Post #AZWcmZoXhQL1Onqo4G by parker@pl.psion.co
       2023-09-07T13:31:38.087295Z
       
       3 likes, 0 repeats
       
       @alex I vote ipfs, since it's more in keeping with the whole nostr ethos.
       
 (DIR) Post #AZWdFirB9t8PqFyvYG by unknown@seal.cafe
       2023-09-07T13:16:58.988436Z
       
       0 likes, 0 repeats
       
       also easier to setup and maintain
       
 (DIR) Post #AZWdFjd2HxPqEgN996 by alex@gleasonator.com
       2023-09-07T13:36:42.763078Z
       
       1 likes, 0 repeats
       
       @unknown S3 is one-click to provision a bucket, but good luck actually configuring it if it's not really S3. DigitalOcean, Wasabi, Minio, are all different and would need separate instructions in the install guide for how to configure them. The S3 API itself is an insane overly-complex unmaintainable nightmare, only made better by the various libraries that obfuscate how bad it is.IPFS looks like it's just one REST endpoint with auth. I think you can just apt-install it and grab a token. But I haven't actually gone through it myself yet, so I might be missing something.IPFS is more resistant to censorship and resilient, in theory, assuming it will actually resolve your file. S3 is reliable with better scaling capabilities.I'm going to play with ipfs a bit more and see how much it struggles.
       
 (DIR) Post #AZWdSn8YYWK4siLF5s by alex@gleasonator.com
       2023-09-07T13:38:41.026477Z
       
       1 likes, 0 repeats
       
       @parker Yep it's content addressable just like Nostr, so makes sense. But @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d hates IPFS because it's slow and unreliable. 😃
       
 (DIR) Post #AZWdrTbWJcafXbeyem by parker@pl.psion.co
       2023-09-07T13:43:42.229421Z
       
       0 likes, 0 repeats
       
       @alex @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d Would that be such an issue for ditto instances maintaining their own ipfs node?
       
 (DIR) Post #AZWeQz5lEjZlKljhrs by alex@gleasonator.com
       2023-09-07T13:49:33.288589Z
       
       1 likes, 0 repeats
       
       @parker @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d You're right, it wouldn't be a problem because the local node would have all the files locally, and the URLs would all point to the local http gateway instead of an actual ipfs URI (we'd include the cid in API responses so you could resolve over ipfs if you wanted to, tho).Users could also choose to disable remote ipfs lookups in the gateway for security/bandwidth reasons, but in the ideal end state we wouldn't even need a media proxy because the local gateway could resolve remote content.
       
 (DIR) Post #AZWg2PtAfXdl70GCf2 by parker@pl.psion.co
       2023-09-07T14:08:06.483447Z
       
       1 likes, 0 repeats
       
       @alex @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d I suppose I could make my own pseudo-CDN with several IPFS nodes then? Plus there's the Cloudflare IPFS Gateway Cache (for those who don't mind cloudflare).
       
 (DIR) Post #AZWja49KIm8lOeYOUi by alex@gleasonator.com
       2023-09-07T14:46:42.865472Z
       
       1 likes, 0 repeats
       
       @parker @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d After thinking more, the main issue I see with serving media over an IPFS gateway is the content-type header. The gateway tries to guess, and it could return application/javascript. Of course serving on a subdomain with CSP solves it, but it's not layered security. Need to solve that.
       
 (DIR) Post #AZWjfM1BIIW6GNGWKu by ahmad@bassam.social
       2023-09-07T14:45:58.285380Z
       
       0 likes, 0 repeats
       
       I guess the S3 would be easier for users to configure and use. So, let's start with that?
       
 (DIR) Post #AZWjfN09dbI1JTnDNI by alex@gleasonator.com
       2023-09-07T14:48:11.398153Z
       
       2 likes, 0 repeats
       
       @ahmad You know firsthand how hard it is to configure with DigitalOcean Spaces. I spent 20 minutes yesterday just trying to guess the right configuration. IPFS seems actually easier.
       
 (DIR) Post #AZWjx90GQCAN6wJrXc by ahmad@bassam.social
       2023-09-07T14:50:59.047918Z
       
       1 likes, 0 repeats
       
       AWS and wasaby are straightforward. Anyway, I've never heard of IPFS before, so I don't know how much easier or harder it is to use it. I'll be looking into that.Anyway, if you believe that IPFS is the way to do things these days, go with it! Maximum you can do is to force people to learn a new thing,
       
 (DIR) Post #AZWm6lInb1CUPKhdXU by zhoreeq@zhub.link
       2023-09-07T15:16:05Z
       
       1 likes, 0 repeats
       
       @alex Ditto with IPFS 🔥 s3 can be added later, right?
       
 (DIR) Post #AZWryHkOCExI9WwubQ by APPTeOORuzvlGOetVY.verita84@poster.place
       2023-09-07T16:21:50.120633Z
       
       0 likes, 0 repeats
       
       @alex Minion S3 . S3 API is the standard for cloud
       
 (DIR) Post #AZWsKIgLOxmLQGYSJ6 by alex@gleasonator.com
       2023-09-07T16:25:41.192425Z
       
       1 likes, 1 repeats
       
       @verita84 S3 API doesn't deserve to be a standard when it's a proprietary Amazon API that a bunch of products just copied poorly. Why isn't there an actual standard?
       
 (DIR) Post #AZWsNe9a1lA0sspE7E by meso@the.asbestos.cafe
       2023-09-07T16:26:24.547647Z
       
       0 likes, 0 repeats
       
       @alex @verita84 yeah, wtf
       
 (DIR) Post #AZWuYXhQZ0NpxdyqRs by APPTeOORuzvlGOetVY.verita84@poster.place
       2023-09-07T16:50:47.883630Z
       
       1 likes, 0 repeats
       
       @alex Linux cannot even have standards =)
       
 (DIR) Post #AZX10ga7jUcBLGMouu by alex@gleasonator.com
       2023-09-07T18:02:55.920052Z
       
       1 likes, 0 repeats
       
       @parker @3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d Good news, the default IPFS gateway returns `Content-Type: text/plain; charset=utf-8` for javascript files, even if they end with a `.js` extension.Same isn't true for SVG, though.