feat: add vault

This commit is contained in:
lab
2021-12-04 04:12:53 +08:00
parent 27445db734
commit 48b53a013d
4 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{
"ui": true,
"storage": {
"file": {
"connection_url": "postgres://postgres:pass@postgresql:5432/vault?sslmode=disable",
"table": "vault_kv_store",
"max_idle_connections": 2,
"max_parallel": "4",
"ha_enabled": true,
"ha_table": "vault_ha_locks"
}
},
"listener": {
"tcp": {
"address": "0.0.0.0:8200",
"tls_disable": 1
}
},
"backend": {
"file": {
"path": "/vault/file"
}
},
"log_level": "Debug",
"default_lease_ttl": "168h",
"max_lease_ttl": "720h"
}

22
vault/config/local.json Normal file
View File

@@ -0,0 +1,22 @@
{
"ui": true,
"storage": {
"file": {
"path": "/vault/file"
}
},
"listener": {
"tcp": {
"address": "0.0.0.0:8200",
"tls_disable": 1
}
},
"backend": {
"file": {
"path": "/vault/file"
}
},
"log_level": "Debug",
"default_lease_ttl": "168h",
"max_lease_ttl": "720h"
}