From e3cdec27f6df33a9b89ff7141cd83ba64d1b9dad Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Mon, 6 Aug 2018 20:46:12 +0100 Subject: Updates to static content generation, docs and examples Static content generator finds the root of the git repo and executes from there. Packr will scan subdirs for boxes to be packed. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b1ddfbb..2e8690f 100644 --- a/README.md +++ b/README.md @@ -116,11 +116,12 @@ Exception to this: the `http_logfile` option **ONLY** writes to local files. The database is used to record issued certificates for audit and revocation purposes. -- `type` : string. One of `mysql`, `sqlite` or `mem`. Default: `mem`. +- `type` : string. One of `mysql`, `sqlite` or `mem`. - `address` : string. (`mysql` only) Hostname and optional port of the database server. - `username` : string. Database username. - `password` : string. Database password. This can be a secret stored in a [vault](https://www.vaultproject.io/) using the form `/vault/path/key` e.g. `/vault/secret/cashier/mysql_password`. - `filename` : string. (`sqlite` only). Path to sqlite database. +- `dbname`: string (`mysql` only). Name of database to use. Examples: ``` @@ -130,6 +131,7 @@ server { address = "my-db-host.corp" username = "user" password = "passwd" + dbname = "cashier_production" } database { @@ -143,8 +145,7 @@ server { } ``` -Prior to using MySQL or SQLite you need to create the database and tables using [the provided seed file](db/seed.sql). -e.g. `mysql < db/seed.sql`. +Cashierd **will not** create the database for you - you need to create this. On startup cashierd will execute any schema changes. Obviously you should setup a role user for running in prodution. ## auth -- cgit v1.2.3