mirror of
https://github.com/cubixle/groxy.git
synced 2026-04-30 14:08:40 +01:00
adds ability to override defaults with env vars, adds debug to config and updates readme.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user