https://github.com/kit-data-manager/gateway
A gateway to rewrite and redirect requests to different services.
https://github.com/kit-data-manager/gateway
Last synced: about 1 year ago
JSON representation
A gateway to rewrite and redirect requests to different services.
- Host: GitHub
- URL: https://github.com/kit-data-manager/gateway
- Owner: kit-data-manager
- Created: 2022-08-11T15:32:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-27T04:02:28.000Z (about 3 years ago)
- Last Synced: 2025-02-06T02:51:20.077Z (over 1 year ago)
- Language: Java
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gateway
This is the simplest Spring Cloud Gateway implementation possible. The idea is to configure all routes via a `application.yml` instead of coding the routes into the gateway. See `config_example` for an example and some documentation links for the configuration.
- [About the difference to a reverse proxy](https://www.baeldung.com/cs/api-gateway-vs-reverse-proxy), see especially [this section for a short Overview](https://www.baeldung.com/cs/api-gateway-vs-reverse-proxy#differences).
## Usage
If you want to run it straight from the repository (e.g., for development or compiling on the server):
```bash
# build only
./gradlew build
# run with config (also builds if this did not happen before)
./gradlew run --args="--spring.config.location=config_example/application.yml"
```
If you only use the JAR file on your server:
```bash
java -jar gateway.jar --spring.config.location=path/to/config/file.yml
```
> **Note**
>
> Remember to restart the application if you change the configuration file.