Skip to content

Commit

Permalink
Merge pull request #1470 from laws-africa/proxy-config
Browse files Browse the repository at this point in the history
rds proxy doesn't allow -c args
  • Loading branch information
longhotsummer authored Aug 23, 2023
2 parents 2f0a3c9 + 96a6aea commit 41b3886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peachjam/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
[slugify(PEACHJAM["APP_NAME"]), os.environ.get("DYNO", "django")]
)
for cfg in DATABASES.values():
cfg.setdefault("OPTIONS", {})["options"] = f"-c application_name={db_app_name}"
if "proxy" not in cfg["HOST"]:
cfg.setdefault("OPTIONS", {})["options"] = f"-c application_name={db_app_name}"


# Password validation
Expand Down

0 comments on commit 41b3886

Please sign in to comment.