mirror of
https://gitea.invidious.io/iv-org/Invidious-quic-proxy.git
synced 2024-08-15 00:43:22 +00:00
Merge branch 'master' of https://github.com/syeopite/Invidious-quic-proxy
This commit is contained in:
commit
a972722fdb
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
# [WIP] Quic proxy built in Python for the Invidious project.
|
# [WIP] Quic proxy built in Python for the Invidious project.
|
||||||
|
|
||||||
##Usage
|
## Usage
|
||||||
|
|
||||||
All requests is done through POST. A data content of
|
All requests is done through POST. A data content of
|
||||||
<br>
|
<br>
|
||||||
```sh
|
```sh
|
||||||
|
@ -16,4 +17,4 @@ The port and address can be changed in config.toml, located in the default OS co
|
||||||
```toml
|
```toml
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 7192
|
port = 7192
|
||||||
```
|
```
|
||||||
|
|
2
main.py
2
main.py
|
@ -24,7 +24,7 @@ CONFIG_FILE.touch(exist_ok=True)
|
||||||
with open(f"{CONFIG_FILE}") as config:
|
with open(f"{CONFIG_FILE}") as config:
|
||||||
config = pytomlpp.loads(config.read())
|
config = pytomlpp.loads(config.read())
|
||||||
if not config:
|
if not config:
|
||||||
config = {"port": 8080, "host": "0.0.0.0"}
|
config = {"port": 7192, "host": "0.0.0.0"}
|
||||||
routes = web.RouteTableDef()
|
routes = web.RouteTableDef()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue