mirror of https://github.com/statping/statping
Updated Environment Variables (markdown)
parent
570b44d4da
commit
7e86d8d103
|
@ -11,7 +11,6 @@ This page will list all environment variables that could be passed into Statping
|
||||||
- `CLEANUP_INTERVAL` - Interval to check for old records (default 1 hour, '1h = 1 hour')
|
- `CLEANUP_INTERVAL` - Interval to check for old records (default 1 hour, '1h = 1 hour')
|
||||||
- `ALLOW_REPORTS` - Send Statping anonymous [error reports](https://sentry.io/) so we can see issues (default is false)
|
- `ALLOW_REPORTS` - Send Statping anonymous [error reports](https://sentry.io/) so we can see issues (default is false)
|
||||||
- `SERVER_PORT` - Port number to run Statping HTTP server on (or use -p/--port)
|
- `SERVER_PORT` - Port number to run Statping HTTP server on (or use -p/--port)
|
||||||
- `READ_ONLY` - Run in a read only mode, this will not create, update, or delete records
|
|
||||||
|
|
||||||
### Automatic SSL Certificate
|
### Automatic SSL Certificate
|
||||||
With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the `certs` folder. Read more about the SSL Process on the [SSL Wiki](https://github.com/statping/statping/wiki/SSL).
|
With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the `certs` folder. Read more about the SSL Process on the [SSL Wiki](https://github.com/statping/statping/wiki/SSL).
|
||||||
|
@ -28,6 +27,7 @@ With LetsEncrypt enabled, Statping will run through the SSL process and create t
|
||||||
- `DB_PORT` - Database port (5432, 3306, ...)
|
- `DB_PORT` - Database port (5432, 3306, ...)
|
||||||
- `DB_DATABASE` - Database connection's database name
|
- `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))
|
- `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))
|
||||||
|
- `READ_ONLY` - Run in a read only mode, this will not create, update, or delete records
|
||||||
- `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)
|
- `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_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_IDLE_CONN` - Set [Maximum Idle Connections](https://golang.org/pkg/database/sql/#DB.SetMaxIdleConns) for database server (default: 25)
|
||||||
|
|
Loading…
Reference in New Issue