Skip to content

Commit

Permalink
chore: Use DT_LATEST_DRAFT_URL from ENV and set it to an internal hos…
Browse files Browse the repository at this point in the history
…tname
  • Loading branch information
kesara committed Jan 21, 2025
1 parent 011b49f commit e5a5470
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion at/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ def create_app(config=None):
elif "SITE_URL" not in app.config.keys():
app.logger.info("SITE_URL not set. Using default.")
app.config["SITE_URL"] = "http://localhost"

app.logger.info(f"SITE_URL: {app.config['SITE_URL']}")

if dt_latest_draft_url := getenv("DT_LATEST_DRAFT_URL"):
app.logger.info(
f"Using DT_LATEST_DRAFT_URL from ENV: {dt_latest_draft_url}")
app.config["DT_LATEST_DRAFT_URL"] = dt_latest_draft_url

if sentry_dsn := getenv("SENTRY_DSN"):
sentry_init(
dsn=sentry_dsn,
Expand Down
1 change: 1 addition & 0 deletions k8s/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ type: Opaque
stringData:
GUNICORN_WORKERS: "2"
SITE_URL: "https://author-tools.ietf.org"
DT_LATEST_DRAFT_URL: "http://dt-datatracker.datatracker.svc/api/rfcdiff-latest-json"
# SENTRY_DSN: "" secret from vault

0 comments on commit e5a5470

Please sign in to comment.