https://github.com/colinzhu/route-switcher-kt
Route Switcher is a reverse proxy with a web UI to update routing rules on the fly
https://github.com/colinzhu/route-switcher-kt
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-kt
- Owner: colinzhu
- Created: 2024-03-31T11:01:57.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-16T15:12:35.000Z (about 1 year ago)
- Last Synced: 2025-01-15T07:30:55.146Z (5 months ago)
- Language: Kotlin
- Homepage:
- Size: 31.3 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
# 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.