Documentation ¶
Overview ¶
Ratproxy is a simple reverse proxy server to let you simulate something like AWS cloudfront sitting in front of your services.
Installation:
`go get github.com/streamingrat/ratproxy
By 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.
`ratproxy.yaml` --------------- ```yaml listen: 0.0.0.0:1414 useTLS: true targets:
- name: server1 target: http://localhost:10000 path: /service1/ type: lambda
- name: server2 target: http://localhost:1313 path: /
```
Click to show internal directories.
Click to hide internal directories.