allow multiple binds
This commit is contained in:
parent
a999024ddf
commit
f34cd88de1
@ -4,8 +4,9 @@
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"host": "127.0.0.1",
|
"binds": [
|
||||||
"port": 9250,
|
"127.0.0.1:9250"
|
||||||
|
],
|
||||||
"log": "-",
|
"log": "-",
|
||||||
"buffer-size": "4KiB",
|
"buffer-size": "4KiB",
|
||||||
"max-size": "2GB",
|
"max-size": "2GB",
|
||||||
|
@ -90,7 +90,7 @@ def main():
|
|||||||
asyncio.run(serve(
|
asyncio.run(serve(
|
||||||
api,
|
api,
|
||||||
Config().from_mapping(
|
Config().from_mapping(
|
||||||
bind=[f"{CONFIG['host']}:{CONFIG['port']}"],
|
bind=CONFIG['binds'],
|
||||||
accesslog='-'
|
accesslog='-'
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user