Skip to content

Commit 0e2c797

Browse files
author
FXI Operator
committed
updated to more secure redis connection
1 parent 08b6249 commit 0e2c797

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

pixi.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bluesky-base = "==1.14.6"
1212
bluesky-queueserver = "*"
1313
matplotlib-base= ">=3.9.3,<4"
1414
networkx = ">=3.4.2,<4"
15-
nslsii = "==0.11.4"
15+
nslsii = ">=0.11.5,<0.12"
1616
numpy = "*"
1717
ophyd = ">=1.11.0"
1818
pyepics = "*"

startup/00-base.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import nslsii
2+
import os
3+
14
###############################################################################
25
# TODO: remove this block once https://github.com/bluesky/ophyd/pull/959 is
36
# merged/released.
@@ -48,7 +51,7 @@ def print_now():
4851
EpicsSignalBase.set_defaults(timeout=10, connection_timeout=10) # new style
4952
EpicsSignal.set_defaults(timeout=10, connection_timeout=10) # new style
5053

51-
import nslsii
54+
5255
from datetime import datetime
5356

5457
# Register bluesky IPython magics.
@@ -63,11 +66,18 @@ def print_now():
6366
from databroker.v0 import Broker as BrokerV0
6467
dbv0 = BrokerV0.named("fxi")
6568

69+
with open('/etc/bluesky/redis.secret') as f:
70+
redis_secret = f.read().strip()
71+
os.environ['REDIS_PASSWORD'] = redis_secret
72+
6673
nslsii.configure_base(get_ipython().user_ns,'fxi',
6774
bec=True,
68-
redis_url='info.fxi.nsls2.bnl.gov'
75+
redis_url='xf18id1-fxi-redis1.nsls2.bnl.gov',
76+
redis_port=6380,
77+
redis_ssl=True
6978
)
7079

80+
7181
nslsii.configure_kafka_publisher(RE, "fxi")
7282

7383

0 commit comments

Comments
 (0)