adds ability to override defaults with env vars, adds debug to config and updates readme.

This commit is contained in:
cubixle
2022-04-20 21:57:59 +01:00
parent d76f4562dd
commit 97cad0fb2b
4 changed files with 29 additions and 12 deletions
+4 -1
View File
@@ -2,13 +2,14 @@
Groxy is a lightweight, simple HTTP reverse proxy written in golang.
Groxy was built to run in a docker container so is setup by default to listen on port 80.
Groxy was built to run on port 8080 by default. This can be changed with the the `GROXY_PORT` environment variable.
## Config
The config for groxy is very simple and will hopefully always be simple.
```yaml
debug: false
endpoints:
- addr: pihole.test
remote_addr: "192.168.1.2:8017"
@@ -16,6 +17,8 @@ endpoints:
remote_addr: "192.168.1.2:9091"
```
By Default groxy will try and read a `groxy.yml` file from its current working directory. To override this you can use the environment variable `GROXY_CONFIG_FILE`.
## Metrics
There are a bunch of different metrics that can be found on port 9090.