feat: add database_type attr and make db connection parameter descriptions generic
This commit is contained in:
parent
6de9129cd0
commit
80214b776c
1 changed files with 14 additions and 13 deletions
|
@ -30,14 +30,15 @@ you will be overriding the values set in the configuration files.
|
|||
#### Database
|
||||
|
||||
| Name | Value |
|
||||
| ------------------------------------ | ------------------------------------------------------------- |
|
||||
| `MCAPTCHA_DATEBASE_PASSWORD` | Postgres password |
|
||||
| `MCAPTCHA_DATEBASE_NAME` | Postgres database name |
|
||||
| `MCAPTCHA_DATEBASE_PORT` | Postgres port |
|
||||
| `MCAPTCHA_DATEBASE_HOSTNAME` | Postgres hostname |
|
||||
| `MCAPTCHA_DATEBASE_USERNAME` | Postgres username |
|
||||
| `MCAPTCHA_DATEBASE_POOL` | Postgres database connection pool size |
|
||||
| `DATABSE_URL` (overrides above vars) | databse URL in `postgres://user:pass@host:port/dbname` format |
|
||||
| ------------------------------------ | -------------------------------------------------------------- |
|
||||
| `MCAPTCHA_DATEBASE_PASSWORD` | database user password |
|
||||
| `MCAPTCHA_DATEBASE_NAME` | database name |
|
||||
| `MCAPTCHA_DATEBASE_PORT` | port on which the DBMS is running |
|
||||
| `MCAPTCHA_DATEBASE_HOSTNAME` | hostname of the DBMS |
|
||||
| `MCAPTCHA_DATEBASE_USERNAME` | database username |
|
||||
| `MCAPTCHA_DATEBASE_POOL` | database connection pool size |
|
||||
| `MCAPTCHA_DATEBASE_DATABASE_TYPE` | database tpye: "postgres" or "maria" |
|
||||
| `DATABSE_URL` (overrides above vars) | database URL in `postgres://user:pass@host:port/dbname` format |
|
||||
|
||||
#### Redis
|
||||
|
||||
|
@ -62,7 +63,7 @@ you will be overriding the values set in the configuration files.
|
|||
### Captcha
|
||||
|
||||
| Name | Value |
|
||||
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| `MCAPTCHA_CAPTCHA_SALT` | Salt has to be long and random |
|
||||
| `MCAPTCHA_CAPTCHA_GC` | Garbage collection duration in seconds, requires tuning but 30 is a good starting point |
|
||||
| `MCAPTCHA_CAPTCHA_AVG_TRAFFIC_DIFFICULTY`% | Difficulty factor to use in CAPTCHA configuration estimation for average traffic metric |
|
||||
|
|
Loading…
Reference in a new issue