Skip to content

Commit

Permalink
Add semi persistent vault
Browse files Browse the repository at this point in the history
This is still just for testing, but gives the same
level of persistence, as does Kubo IPFS.

Done right, it should be safe, though. YMMV!
  • Loading branch information
bahner committed Mar 19, 2024
1 parent ba99394 commit 1e96a86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ go.work
/relay
/node
/.vault
vault/**
1 change: 1 addition & 0 deletions cmd/pong/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func p2pOptions() p2p.Options {
libp2p.DefaultSecurity,
libp2p.EnableRelay(),
libp2p.EnableRelayService(),
libp2p.Ping(true),
}}
}

Expand Down
14 changes: 14 additions & 0 deletions vault.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
storage file {
path = "./vault"
}

listener tcp {
address = "127.0.0.1:8200"
tls_disable = 1
}

api_addr = "http://127.0.0.1:8200"

default_lease_ttl = "168h"
max_lease_ttl = "720h"
ui = true

0 comments on commit 1e96a86

Please sign in to comment.