bind firegex also on ipv6 by default
This commit is contained in:
@@ -224,7 +224,8 @@ if __name__ == '__main__':
|
|||||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
uvicorn.run(
|
uvicorn.run(
|
||||||
"app:app",
|
"app:app",
|
||||||
host=FIREGEX_HOST,
|
# None allows to bind also on ipv6, and is selected if FIREGEX_HOST is any
|
||||||
|
host=None if FIREGEX_HOST == "any" else FIREGEX_HOST,
|
||||||
port=FIREGEX_PORT,
|
port=FIREGEX_PORT,
|
||||||
reload=DEBUG and not NORELOAD,
|
reload=DEBUG and not NORELOAD,
|
||||||
access_log=True,
|
access_log=True,
|
||||||
|
|||||||
3
run.py
3
run.py
@@ -95,7 +95,8 @@ def load_config():
|
|||||||
import json
|
import json
|
||||||
default_config = {
|
default_config = {
|
||||||
"port": 4444,
|
"port": 4444,
|
||||||
"host": "0.0.0.0"
|
# any allow to bind service also on ipv6 (see the main of backend to understand why)
|
||||||
|
"host": "any"
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.path.isfile(g.configfile):
|
if os.path.isfile(g.configfile):
|
||||||
|
|||||||
Reference in New Issue
Block a user