Skip to content

Commit

Permalink
🛠️ fix(config): Correct HOST and PORT Environment Variables (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Mar 29, 2024
1 parent fb1a629 commit 3cec7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def get_env_variable(var_name: str, default_value: str = None) -> str:
return default_value
return value

RAG_HOST = os.getenv('HOST', '0.0.0.0')
RAG_PORT = int(os.getenv('PORT', 8000))
RAG_HOST = os.getenv('RAG_HOST', '0.0.0.0')
RAG_PORT = int(os.getenv('RAG_PORT', 8000))

RAG_UPLOAD_DIR = get_env_variable("RAG_UPLOAD_DIR", "./uploads/")
if not os.path.exists(RAG_UPLOAD_DIR):
Expand Down

0 comments on commit 3cec7fe

Please sign in to comment.