Skip to content

Commit

Permalink
Get redis host and password from environment (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram authored Feb 5, 2025
1 parent 2b18524 commit dfc171c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dodal/beamlines/i04.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from dodal.common.beamlines.beamline_parameters import get_beamline_parameters
from dodal.common.beamlines.beamline_utils import device_factory, device_instantiation
from dodal.common.beamlines.beamline_utils import set_beamline as set_utils_beamline
Expand Down Expand Up @@ -44,8 +46,8 @@
DISPLAY_CONFIG = "/dls_sw/i04/software/gda_versions/var/display.configuration"
DAQ_CONFIGURATION_PATH = "/dls_sw/i04/software/daq_configuration"

REDIS_HOST = "i04-control.diamond.ac.uk"
REDIS_PASSWORD = "not_telling"
REDIS_HOST = os.environ.get("VALKEY_PROD_SVC_SERVICE_HOST", "test_redis")
REDIS_PASSWORD = os.environ.get("VALKEY_PASSWORD", "test_redis_password")
MURKO_REDIS_DB = 7

BL = get_beamline_name("s04")
Expand Down

0 comments on commit dfc171c

Please sign in to comment.