ipfs-inactive / refs

[ARCHIVED] DMCA notices, and tools for publishing them
https://ipfs.io/refs/lists/denylists/dmca
MIT License
12 stars 4 forks source link

refs with IPLD: yml or json or toml file #6

Open jbenet opened 8 years ago

jbenet commented 8 years ago

once IPLD lands, we can keep the whole refs dag in one (or a collection of) config files. and we can use json, yml, toml as source:

a valid refs.ipfs.io source file:


---
# this is the src file for refs.ipfs.io

lists:
  denylists:
    dmca: {mlink: <ref-for-dmca>}

# solarnet is the ipfs cluster running bootstrap + gateway (ipfs.io) nodes.
solarnet:
  motd: {mlink: /ipfs/<ref-for-motd>}
  bootstrap: {mlink: <ref-for-bootstrap-list>}
  gateway: {mlink: <ref-for-gateways-list>}
jbenet commented 8 years ago

IPLD will make it so you can just do this:

refshash=$(ipfs object put --enc yml refs.yml)
dnslink-deploy <args> dnslink=$refshash

\o/

jbenet commented 8 years ago

@davidar you'll like that o/

ghost commented 8 years ago

Oh this is just lovely <3

davidar commented 8 years ago

@jbenet :D

I'd still like motd: !mlink /ipfs/<ref-for-motd>, but I won't push my luck :p