Updated Environment Variables (markdown)

master
Hunter Long 2020-04-14 08:38:17 -07:00
parent 8f0ab646a5
commit 98260319d6
1 changed files with 4 additions and 4 deletions

@ -1,7 +1,7 @@
This page will list all environment variables that could be passed into Statping.
### Statping Server
- `PORT` - Set the outgoing port for the HTTP server (or use -port)
- `PORT` - Set the outgoing port for the HTTP server (or use -port, default: 8080)
- `IP` - Bind a specific IP address to the HTTP server (or use -ip)
- `VERBOSE` - Display more logs in verbose mode. (1 - 4)
- `STATPING_DIR` - Set a absolute path for the root path of Statping server (logs, assets, SQL db)
@ -19,9 +19,9 @@ This page will list all environment variables that could be passed into Statping
- `DB_PORT` - Database port (5432, 3306, ...)
- `DB_DATABASE` - Database connection's database name
- `POSTGRES_SSLMODE` - Enable Postgres SSL Mode 'ssl_mode=VALUE' (enable/disable/verify-full/verify-ca)
- `MAX_OPEN_CONN` - Set Maximum Open Connections for database server (default: 5)
- `MAX_IDLE_CONN` - Set Maximum Idle Connections for database server
- `MAX_LIFE_CONN` - Set Maximum Life Connections for database server
- `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)
### Connection
- `BASE_PATH` - Set the base URL prefix (set to 'monitor' if URL is domain.com/monitor)