https://github.com/colinzhu/route-switcher
Route Switcher is a reverse proxy with a web UI to update routing rules on the fly
https://github.com/colinzhu/route-switcher
Last synced: 3 months ago
JSON representation
Route Switcher is a reverse proxy with a web UI to update routing rules on the fly
- Host: GitHub
- URL: https://github.com/colinzhu/route-switcher
- Owner: colinzhu
- Created: 2024-03-24T03:47:22.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-29T14:53:44.000Z (about 1 year ago)
- Last Synced: 2025-01-15T07:30:59.360Z (5 months ago)
- Language: Java
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Route Switcher
[English](README.md) | [中文](README.zh-CN.md)
Route Switcher is a reverse proxy server application developed using Java and Vert.x.
It is designed to route the network traffic to different destinations based on the specified routing rules.## Features
- Dynamic route network traffic to different destinations based on the URI prefix.
- Web interface to add, update, and delete routing rules on the fly.
- Web interface to monitor and debug your network traffic.## Setup and Run
To set up and run the application, you need to have Java and Maven installed. Then, you can clone the repository and run the application using Maven.
```bash
git clone https://github.com/colinzhu/routeswitcher.git
cd routeswitcher
# update config.json to set the port
mvn clean install
mvn exec:java
```The application will start and listen on the configured port.
## Using the UI
Once the application is running, you can open your browser and navigate to `http://localhost:` to access the Route Switcher interface. Here, you can manage your routing rules.
Each rule consists of a `uriPrefix` and a `target`. The `uriPrefix` is the beginning of the URI that the rule should match, and the `target` is the server to which requests matching the `uriPrefix` should be routed.