A simple HTTP reverse proxy server for web development.
Simple:
docker --rm -it --network host sifyfy/rp -- -r /path/to:http://localhost:3000/path/to
Multiple settings:
docker --rm -it --network host sifyfy/rp -- \
-r /foo:http://localhost:3000/foo \
-r /bar:http://localhost:3001/bar
You can use a config file instead of specified settings to arguments.
(1) ./conf.yaml
reverse_proxy:
- path: /foo
url: http://localhost:3000/foo
- path: /bar
url: http://localhost:3001/bar
(2) run
docker --rm -it --network host -v $PWD/conf.yaml:/conf/conf.yaml sifyfy/rp
git clone https://github.com/sifyfy/docker-rp.git
cd docker-rp
make
Requirements: Rust 1.30+ (Recommend latest stable)
git clone https://github.com/sifyfy/docker-rp.git
cd docker-rp
cargo build
or install generate-simple-reverse-proxy-conf-to-nginx
cargo install --git https://github.com/sifyfy/docker-rp.git