Simple reverse proxy that protects all incoming requests with HTTP Basic Auth.
Create a YAML file (for example config.yaml) based on config.example.yaml:
listen: ":8080"
forward_to: "http://localhost:3000"
credentials:
- username: "admin"
password: "secret"listen: address the proxy server binds to (default::8080if omitted)forward_to: target base URL to proxy tocredentials: allowed Basic Auth username/password pairs
go run . -config config.yaml