server docs
This commit is contained in:
parent
50b1fa78f6
commit
8a121f00a4
1 changed files with 26 additions and 0 deletions
26
Server/readme.md
Normal file
26
Server/readme.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Interverse-proxy
|
||||||
|
|
||||||
|
A very simple flask server that caches interverse requests
|
||||||
|
|
||||||
|
## Endpoints:
|
||||||
|
Both require an `url` parameter
|
||||||
|
`example.com` for example
|
||||||
|
|
||||||
|
`/inital`
|
||||||
|
|
||||||
|
Returns the data from a specified site.
|
||||||
|
Searches the following locations:
|
||||||
|
|
||||||
|
* `/.well-known/interverse`
|
||||||
|
* `/interverse.json`
|
||||||
|
* `/.well-known/discover.json` (for [Discover](https://codeberg.org/onasaft/Discover) compatibility)
|
||||||
|
|
||||||
|
Has to change `preview_connections` into `connection_groups`
|
||||||
|
|
||||||
|
`/complete`
|
||||||
|
|
||||||
|
Returns initial in the `main` object then connection data in the `connections` object
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
The server can be run with [uwsgi](https://uwsgi-docs.readthedocs.io/en/latest/) with `start.sh`
|
Loading…
Reference in a new issue