Skip to content

Commit

Permalink
motis-proxy: Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Feb 20, 2024
1 parent 06fc21d commit eb7b2ef
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions motis-proxy/README.md
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
-->

0 comments on commit eb7b2ef

Please sign in to comment.