-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06fc21d
commit eb7b2ef
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# MOTIS Proxy | ||
|
||
This proxy validates all incoming requests before forwarding them to MOTIS. | ||
It ensures that the request is: | ||
|
||
* valid JSON | ||
* a valid motis request | ||
* to an endpoint we actually want to expose | ||
|
||
It should only be used to handle the `/` endpoint of motis, everything else should be proxied using a proper web server. | ||
|
||
## Development | ||
|
||
For development, you can set up a `Rocket.toml` with the following content in the working directory of `motis-proxy`. | ||
|
||
With the debug log level, it will log the requests and responses. | ||
|
||
```toml | ||
[default.proxy] | ||
motis_address = "https://europe.motis-project.de" | ||
|
||
[default] | ||
log_level = "debug" | ||
``` | ||
|
||
<!-- | ||
SPDX-License-Identifier: CC0-1.0 | ||
SPDX-FileCopyrightText: none | ||
--> |