# vault **Repository Path**: jiangjiali/vault ## Basic Information - **Project Name**: vault - **Description**: Vault 是秘密访问私密信息的工具,可以帮你管理一些私密的信息,比如 API 密码,验证等。 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/jiangjiali/vault - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-15 - **Last Updated**: 2023-03-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: GO库 ## README Vault 1.1.11 stable -------------------- 安装必须组件 (GO Version 1.19+ is *required*) ## 编译 ```shell # 编译前,必须安装 upx 工具 # upx 工具用于压缩程序 # 编译MAC版 make mac # 编译Linux版 make linux # 编译windows版 make win ``` ## 使用说明 ### 配置文件 config.json ```json { "backend": { "file": { "path": "data/file" } }, "ui": true, "default_lease_ttl": "168h", "max_lease_ttl": "720h", "listener": { "tcp": { "address": "0.0.0.0:8200", "tls_disable": "1", "max_request_size": 8388608, "max_request_duration": "30s" } }, "disable_mlock": true, "api_addr": "http://127.0.0.1:8200", "cluster_name": "vault", "plugin_directory": "data/plugins" } ``` ### 运行 ```shell # 运行测试模式 vault server -dev # 通过配置文件运行 vault server -config=config.json ``` ## API接口 http://127.0.0.1:8200/v1/sys/internal/specs/openapi