Update readme
This commit is contained in:
parent
a6f9325e33
commit
8f4b9944e7
1 changed files with 14 additions and 1 deletions
15
README.md
15
README.md
|
@ -1,6 +1,8 @@
|
||||||
# Proxima
|
# Proxima
|
||||||
|
|
||||||
Proxima is a simple gateway server.
|
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
|
## Configuring
|
||||||
|
|
||||||
|
@ -14,3 +16,14 @@ 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`
|
`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
|
header's value. If the latter effect is specified, Proxima redirects clients
|
||||||
to that location.
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue