ratproxy

command module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 23 Imported by: 0

README

ratproxy

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@latest

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

listen: 0.0.0.0:1414
targets:
 - name: server1
   type: lambda
   target: http://localhost:10000
   path: /service1/
 - name: server2
   target: http://localhost:1313
   path: /

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:

```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL