Ratproxy is a simple reverse proxy server to let you simulate something like AWS cloudfront sitting in front of your services.
Installation:
go install github.com/streamingrat/ratproxy@latestBy default ratproxy will use the environment variable RATPROXY_FILENAME to open the config file. If not set uses ratproxy.yaml.
Configuration: You configure the ratproxy with a yaml file like the following, which configures two services listening on two different ports.
listen: 0.0.0.0:1414 targets: - name: server1 type: lambda target: http://localhost:10000 path: /service1/ - name: server2 target: http://localhost:1313 path: /