You need to have keyengine.json
configuration file in the current directory.
{ "httpPort": 80, "secret": "1234567890", "key": "test.key", "pwd": "qazwsx", "driver": "sqlite3", "connString": "file:test.db?cache=shared&mode=memory", "allowTokens": true, "license": "ey...0ifX0=" }
httpPort
Sets up a port where the built-in HTTP listens.
secret
Specifies a secret key to access /upload/
page.
key
A path of a private key file. The key should be in an OpenSSH format, as generated by ssh-keygen.
pwd
The private key password, or an empty string, if the key isn’t encrypted.
driver
Database driver, one of postgres
, mysql
, sqlite3
.
connString
Database connection string.
For postgres
it should be as follows:
postgres://username:password@host:5432/database?sslmode=disable
or see the docs here.
For mysql
it should be as follows:
username:password@tcp(host:3306)/test?autocommit=true
or see the docs here.
For sqlite3
it should be as follows:
file:test.db?cache=shared
or see the docs here.
allowTokens
If true, unblocks /license/
page processing.
license
keyengine itself is a shareware so it requires license to be used. Use your license key or empty quotes for trial period. After the 30-day trial period you should buy a license at https://elfuego.biz.