mirror of
https://github.com/open-webui/open-webui
synced 2024-11-29 15:33:42 +00:00
commit
98eaec22d4
@ -10,14 +10,13 @@ app = typer.Typer()
|
|||||||
|
|
||||||
KEY_FILE = Path.cwd() / ".webui_secret_key"
|
KEY_FILE = Path.cwd() / ".webui_secret_key"
|
||||||
|
|
||||||
os.environ["FROM_INIT_PY"] = "true"
|
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def serve(
|
def serve(
|
||||||
host: str = "0.0.0.0",
|
host: str = "0.0.0.0",
|
||||||
port: int = 8080,
|
port: int = 8080,
|
||||||
):
|
):
|
||||||
|
os.environ["FROM_INIT_PY"] = "true"
|
||||||
if os.getenv("WEBUI_SECRET_KEY") is None:
|
if os.getenv("WEBUI_SECRET_KEY") is None:
|
||||||
typer.echo(
|
typer.echo(
|
||||||
"Loading WEBUI_SECRET_KEY from file, not provided as an environment variable."
|
"Loading WEBUI_SECRET_KEY from file, not provided as an environment variable."
|
||||||
|
Loading…
Reference in New Issue
Block a user