Skip to content

Commit f82978b

Browse files
committed
configure reading redis secret and passing in redis args to configure_base
1 parent 1379b31 commit f82978b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

startup/00-base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@
99

1010
print("LOADING 00")
1111

12+
### Redis
13+
with open("/etc/bluesky/redis.secret", "r") as f:
14+
redis_secret = f.read().strip()
15+
os.environ["REDIS_PASSWORD"] = redis_secret
16+
17+
### Configure Base
1218
nslsii.configure_base(
1319
get_ipython().user_ns, # noqa: F821
1420
publish_documents_with_kafka="cdi",
21+
redis_url="xf09id1-cdi-redis1.nsls2.bnl.gov",
22+
redis_port=6380,
23+
redis_ssl=True
1524
)
1625

26+
### Tiled
1727
tiled_writing_client = from_uri(
1828
"https://tiled.nsls2.bnl.gov/api/v1/metadata/cdi/raw",
1929
api_key=os.environ["TILED_BLUESKY_WRITING_API_KEY_CDI"],

0 commit comments

Comments
 (0)