mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-11 16:58:30 +08:00
config: Broke out config directory into its own const
This commit is contained in:
@ -34,12 +34,13 @@ type Config struct {
|
||||
Peers []*SavedPeer
|
||||
}
|
||||
|
||||
var DefaultConfigFilePath = "~/.go-ipfs/config"
|
||||
var DefaultConfigFile = `{
|
||||
const DefaultPathRoot = "~/.go-ipfs"
|
||||
const DefaultConfigFilePath = DefaultPathRoot + "/config"
|
||||
const DefaultConfigFile = `{
|
||||
"identity": {},
|
||||
"datastore": {
|
||||
"type": "leveldb",
|
||||
"path": "~/.go-ipfs/datastore"
|
||||
"path": "` + DefaultPathRoot + `/datastore"
|
||||
}
|
||||
}
|
||||
`
|
||||
|
Reference in New Issue
Block a user