Invidious-quic-proxy/README.md

31 lines
880 B
Markdown
Raw Permalink Normal View History

2021-05-23 13:58:31 +00:00
# Quic proxy built in Python for the Invidious project.
## Installation
1. Clone the repository
2. Create a python virtual environment
3. Install dependencies through pip `pip install -r requirements.txt`
2021-05-21 18:31:59 +00:00
2021-05-22 12:59:28 +00:00
## Usage
2021-05-21 18:31:59 +00:00
All requests is done through POST. A data content of
<br>
```sh
{"headers": {"Content-Type": "application/json"},
"url": "https://www.youtube.com/youtubei/v1/browse?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
"method": "POST", "data": {"context": {...}}
```
Will use HTTP/3 to query the specified URL with the specified data, method and headers.
## Configuration
The port and address can be changed in config.toml, located in the default OS config location.
```toml
2021-06-05 15:57:28 +00:00
# Host address to listen on
listen = "0.0.0.0:7192"
2021-06-05 16:11:01 +00:00
# It also supports UNIX Sockets!
# listen = "/tmp/quicproxysocket"
# Amount of workers to process quic requests
open_connections = 5
2021-05-22 12:59:28 +00:00
```