Skip to content

Commit 227650f

Browse files
committed
host=None only in production
1 parent 07c4530 commit 227650f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async def reset_firegex(form: ResetRequest):
154154
os.chdir(os.path.dirname(os.path.realpath(__file__)))
155155
uvicorn.run(
156156
"app:app",
157-
host=None,
157+
host="0.0.0.0" if DEBUG else None,
158158
port=FIREGEX_PORT,
159159
reload=DEBUG,
160160
access_log=True,

0 commit comments

Comments
 (0)