Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eason0729/simple-reverse-proxy
A simple http reverse proxy as a learning project
https://github.com/eason0729/simple-reverse-proxy
http proxy reverse-proxy rust websocket
Last synced: 20 days ago
JSON representation
A simple http reverse proxy as a learning project
- Host: GitHub
- URL: https://github.com/eason0729/simple-reverse-proxy
- Owner: Eason0729
- Created: 2022-07-30T15:01:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T14:38:01.000Z (over 2 years ago)
- Last Synced: 2023-03-10T01:56:51.137Z (almost 2 years ago)
- Topics: http, proxy, reverse-proxy, rust, websocket
- Language: Rust
- Homepage:
- Size: 2.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# A simple reverse proxy
**This is not a production project**
**This is a project for me to learn**
## Get Started
1. Download the project and compile
```shell
git clone ...
```2. Edit ``config.yml``
```yml
server:
addr: "0.0.0.0:8081"
thread: 4
hosts:
a.example.com:
header-rewrite: true # experimental
routing:
- 127.0.0.1:8000
- www.example.com:8081
www.example.com:
routing:
- 127.0.0.1:8000
```
Remove comments in yml file before execute the program3. Ready to run
## Limitation
- Header size should be smaller than 8KiB
- Timeout depends on the upstream serverLimitation can be changed by editing constant in the source code.