Skip to content

Commit

Permalink
Merge pull request #555 from lbrito1/main
Browse files Browse the repository at this point in the history
Allow passing custom HOST through an env var.
  • Loading branch information
pudo authored Nov 8, 2024
2 parents a97da87 + 6a6686c commit cbbbda2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yente/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def serve() -> None:
server = Server(
Config(
app,
host="0.0.0.0",
host=settings.HOST,
port=settings.PORT,
proxy_headers=True,
reload=settings.DEBUG,
Expand Down
1 change: 1 addition & 0 deletions yente/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def random_cron() -> str:

BASE_SCHEMA = "Thing"
PORT = int(env_str("YENTE_PORT", env_str("PORT", "8000")))
HOST = int(env_str("YENTE_HOST", env_str("HOST", "0.0.0.0")))
UPDATE_TOKEN = env_str("YENTE_UPDATE_TOKEN", "unsafe-default")
CACHE_HEADERS = {
"Cache-Control": "public; max-age=3600",
Expand Down

0 comments on commit cbbbda2

Please sign in to comment.