Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1012 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 1012 Bytes

Keepass-HTTPD License

Serve your keepass file via http api

Not for production use yet

Installation

go get github.com/Gonzih/keepass-httpd

Usage

Start the server

$ keepass-httpd --keepass-file /path/to/file.kdbx --http-port 8080

Currently you always have to initialize db via http call

$ curl --form "password=mysecret" "http://localhost:8080/reload"
> {"status":"success"}

Search endpoint uses logical AND for parameters to search

$ curl "http://localhost:8080/search?title=entrytitle&url=url.com&username=myusername"
> {"username":"myusername","title":"entrytitle","password":"securepassword","url":"url.com"}

Re-read DB file from the disk to memory

$ curl --form "password=mysecret" "http://localhost:8080/reload"
> {"status":"success"}

To see all command line arguments run

keepass-httpd --help