-
Notifications
You must be signed in to change notification settings - Fork 1
Site routing in DAT? #12
Comments
@aral two things that might be of interest to you:
|
Yeah @webdesserts has the right answer. I'm very interested in the mount/symlink idea.
Quick clarification: because you can't remove them from the history? |
@pfrazee Ah, I was confused about deletion (still a lot to learn about DAT, making steady progress). Hadn’t realised DAT uses tombstones and garbage collection. Right, so the deletion/garbage collection use case then becomes for deleting history as per your comment. |
Yeah. We haven't implemented history GC in Beaker yet but we plan to. I also think it'd be interesting to explore a "purge" tombstone that leads to automatic removal from the history cache. |
We've decided 100% to move forward with mounts. Closing. |
Not sure if this is the right place to hatch this idea (or whether it’s already been suggested elsewhere), but I want to put forward a use case and a possible implementation and get your thoughts on it (including on where I might have the wrong preconceptions and/or incorrect assumptions):
Use case
I don’t want a single archive per DAT site as this will quickly get rather large. I also would like to delete posts, etc., and that’s not currently possible.
For my blog, the sweet spot might be one archive (e.g.) per post.
Currently, as far as I can see in the DAT DNS DEP, I can set up a DNS mapping in ./well-known/dat for the root of the site and any paths off of that route are assumed to be in the same archive that the root maps to.
So, for dat://live.ar.al, for example, I have:
And the site is comprised of a single DAT archive (bfb2eeb…).
One way to implement a more granular mapping would be to extend (bastardise) this to include routing from multiple internal URLs to DAT public keys. However, this is not ideal for a number of reasons, including that the routing information itself would not be exposed over DAT so the site itself would not be a DAT site.
Suggestion
e.g.,
So, for example, the above index would lead the following route mappings:
*dat://live.ar.al/post1/ → dat://87ed2e3b…/
Advantages
Questions
Thoughts? :)
The text was updated successfully, but these errors were encountered: