Skip to content

Commit

Permalink
Merge pull request #29 from NethServer/dev6902
Browse files Browse the repository at this point in the history
Use the redis replica for get smathost settings in service start NethServer/dev#6902
  • Loading branch information
stephdl authored Mar 22, 2024
2 parents 382ece1 + 9409415 commit 8f65f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/bin/expand-smarthost
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from jinja2 import Environment, FileSystemLoader, select_autoescape
helo_host = os.environ.get("HELO_HOST", "")
receiver_emails = os.environ.get("RECEIVER_EMAILS", "")

smtp = agent.get_smarthost_settings(agent.redis_connect())
smtp = agent.get_smarthost_settings(agent.redis_connect(use_replica=True))

files =["crowdsec_config/notifications/email.yaml"]
for f in files:
Expand Down

0 comments on commit 8f65f76

Please sign in to comment.