mirror of https://github.com/statping/statping
Updated Environment Variables (markdown)
parent
6a4205fd0f
commit
981d72003b
|
@ -27,10 +27,11 @@ With LetsEncrypt enabled, Statping will run through the SSL process and create t
|
|||
- `DB_PASS` - Database password
|
||||
- `DB_PORT` - Database port (5432, 3306, ...)
|
||||
- `DB_DATABASE` - Database connection's database name
|
||||
- `DB_DSN` - Database DSN string ([postgres](https://www.php.net/manual/en/ref.pdo-pgsql.connection.php), [mysql](https://github.com/go-sql-driver/mysql#dsn-data-source-name), [sqlite](https://www.sqlite.org/inmemorydb.html))
|
||||
- `POSTGRES_SSLMODE` - Enable [Postgres SSL Mode](https://www.postgresql.org/docs/9.1/libpq-ssl.html) 'ssl_mode=VALUE' (enable/disable/verify-full/verify-ca)
|
||||
- `MAX_OPEN_CONN` - Set [Maximum Open Connections](https://golang.org/pkg/database/sql/#DB.SetMaxOpenConns) for database server (default: 25)
|
||||
- `MAX_IDLE_CONN` - Set [Maximum Idle Connections](https://golang.org/pkg/database/sql/#DB.SetMaxIdleConns) for database server (default: 25)
|
||||
- `MAX_LIFE_CONN` - Set [Maximum Life Connections](https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime) for database server (default: 25)
|
||||
- `MAX_LIFE_CONN` - Set [Maximum Life Connections](https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime) for database server (default: 5 minutes)
|
||||
- `PREFIX` - Add a prefix string to each Prometheus metric (default is empty)
|
||||
|
||||
### Connection
|
||||
|
|
Loading…
Reference in New Issue