mirror of
https://github.com/Xevion/linkpulse.git
synced 2026-01-31 04:24:46 -06:00
hotfix: listen on 0.0.0.0 IPv4 interface binding
I don't know sometimes.
This commit is contained in:
@@ -36,9 +36,7 @@ def main(*args):
|
|||||||
run(
|
run(
|
||||||
"linkpulse.app:app",
|
"linkpulse.app:app",
|
||||||
reload=is_development,
|
reload=is_development,
|
||||||
# Both options are special IP addresses that allow the server to listen on all network interfaces. One is for IPv4, the other for IPv6.
|
host="0.0.0.0",
|
||||||
# Railway's private networking requires IPv6, so we must use that in production.
|
|
||||||
host="0.0.0.0" if is_development else "::",
|
|
||||||
port=int(os.getenv("PORT", "8000")),
|
port=int(os.getenv("PORT", "8000")),
|
||||||
log_config={
|
log_config={
|
||||||
"version": 1,
|
"version": 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user