An extremely simple reverse proxy/gateway
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Riley Apeldoorn 1a62b7404b
Whitespace fix
3 weeks ago
src Whitespace fix 3 weeks ago
.gitignore Implement config parsing 3 weeks ago
Cargo.lock Implement config parsing 3 weeks ago
Cargo.toml Implement config parsing 3 weeks ago
README.md Update readme 3 weeks ago

README.md

Proxima

Proxima is a simple gateway server. It supports reverse proxying to a different port on 0.0.0.0 and responding to requests with a 308 Permanent Redirect response code.

Configuring

Proxima reads the first config file it sees in the following order of preference:

  • ./config
  • /etc/proxima

In these files, each line is a rule consisting of a pattern (consisting of a hostname and a portspec) and an effect: either a number indicating a port on 0.0.0.0 to proxy the request to or a string that is used as the location header's value. If the latter effect is specified, Proxima redirects clients to that location.

Examples

The following config defines two rules: the first one redirects all requests to git.riley.lgbt to https://im.badat.dev. The second rule passes each request to riley.lgbt to port 3000.

git.riley.lgbt : * ==> https://im.badat.dev
    riley.lgbt : * --> 3000