Closed benhylau closed 3 years ago
There should also be a way to enable/disable WWW, IPFS, and Hypercore publishing in project config. This would affect which records get created.
Possible project.json
config change
{
"domain": "AAAA.BBBB.CCC",
"protocol": {
"http":{
"enable":"true"
},
"ipfs":{
"enable":"true"
},
"dat":{
"enable":"true"
}
}
}
--
protocol
: configurations for specific target protocols
http
: configuration specific to the http
protocolenable
: boolean if protocol will be usedipfs
: configuration specific to the ipfs
protocolenable
: boolean if protocol will be useddat
: configuration specific to the dat
protocolenable
: boolean if protocol will be usedDo we want the ability for custom ipv4 addresses (ie server other then ours)
How's this?
{
"domain": "staging.compost.digital",
"publication": {
"protocol": {
"http": {
"enable": true
},
"ipfs": {
"enable": true
},
"hypercore": {
"enable": true
}
},
"dns": [
{
"type": "A",
"name": "@",
"data": "198.50.215.6"
},
{
"type": "AAAA",
"name": "@",
"data": "2607:5300:203:4014:5074:f2ff:feb1:a87f"
}
]
}
}
If no protocol
is specified, or any of the protocols is missing, they are default to true
.
DNS records are published as is and it assumes the project knows what they are doing, and there is no automated way to remove. Only A and AAAA are supported.
We will cut out the DNS as it really is out of scope of the requirements
How's this?
{
"domain": "staging.compost.digital",
"publication": {
"protocol": {
"http": {
"enable": true
},
"ipfs": {
"enable": true
},
"hypercore": {
"enable": true
}
}
}
}
publication
: configuration entries that control publications
protocol
: configurations for specific target protocolshttp
: configuration specific to the HTTP
protocol
enable
: boolean if protocol will be used, default value is true
ipfs
: configuration specific to the IPFS
protocol
enable
: boolean if protocol will be used, default value is true
hypercore
: configuration specific to the Hypercore
protocol
enable
: boolean if protocol will be used, default value is true
false
to http here once this is merged? Thanks! https://github.com/hyphacoop/hypha.coop/blob/staging/_scripts/config-dweb.jsonI was thinking about this last night. If I'm removing entries when "disabled" i think i need to also add a "disableDnsUpdate": true
is it does not remove the @ record on disable.
ποΈ Re-ticketed from: #
π Due date: end-Feb
π― Success criteria: Create all A and AAAA records for a new project.
Task Summary
Right now, when we add a new project we have to manually add the domain to Digital Ocean, and create A and AAAA records for the
<project.domain>
and<api.project.domain>
. This needs to be automated in the API.There should also be a way to enable/disable WWW, IPFS, and Hypercore publishing in project config. This would affect which records get created.
At the moment we only create the TXT records for DWeb using this code. It should be pretty straightforward to extend this to A and AAAA.
To Do