Update README.md

This commit is contained in:
2022-07-01 10:19:08 +01:00
committed by GitHub
parent 17580cf876
commit 2fe8e1de8c

View File

@@ -1,35 +1,3 @@
# Groxy # Groxy
Groxy is a lightweight, simple HTTP reverse proxy written in golang. Moved to https://git.sr.ht/~cubixle/groxy
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"
- addr: trans.test
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.
```
# TYPE request_counter counter
request_counter{code="200",method="GET"} 209
request_counter{code="304",method="GET"} 20
```
## Docker
Docker containers can be found [here](https://hub.docker.com/r/cubixle/groxy)