From 7e58a7e192e83bb6ee2c085d45472e3cbb70f124 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Fri, 12 Jun 2020 19:26:58 -0700 Subject: [PATCH] Updated Environment Variables (markdown) --- Environment-Variables.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Environment-Variables.md b/Environment-Variables.md index 46bacc5..6d5b476 100644 --- a/Environment-Variables.md +++ b/Environment-Variables.md @@ -2,7 +2,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, default: 8080) -- `IP` - Bind a specific IP address to the HTTP server (or use --ip) +- `HOST` - 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) - `DISABLE_LOGS` - Disable viewing and writing to the log file (default is false) @@ -30,7 +30,13 @@ This page will list all environment variables that could be passed into Statping - `HTTP_PROXY` - Use a [HTTP Proxy](https://golang.org/pkg/net/http/#ProxyFromEnvironment) for HTTP Requests - `AUTH_USERNAME` - HTTP Basic Authentication username - `AUTH_PASSWORD` - HTTP Basic Authentication password - +- `DISABLE_HTTP` - Disable HTTP server if set to true +- `DISABLE_COLORS` - Disable colors in terminal logs if set to true +- `DEBUG` - Enables pprof golang debugging on port 9090 +- `LOGS_MAX_COUNT` - Maximum amount of log files (defaults to 5) +- `LOGS_MAX_AGE` - Maximum age for log files (defaults to 28 days) +- `LOGS_MAX_SIZE` - Maximum size for log files (defaults to 16 MB) +- `LANGUAGE` - Language to use (en, fr, ru, more to come...) ### Assets - `SASS` - Set the absolute path to the [sass](https://sass-lang.com/) binary location (find with `which sass`) - `USE_ASSETS` - Automatically use assets from 'assets folder' (true/false)