Skip to content

Commit

Permalink
allow Live Data Server domain and port to be set as environment varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
backmari committed Apr 30, 2024
1 parent 44604d5 commit ba9d8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webmon_app/reporting/reporting_app/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def validate_ldap_settings(server_uri, user_dn_template):
INSTRUMENT_REDUCTION_SETUP = ("seq", "arcs", "corelli", "cncs", "ref_m")

LIVE_DATA_SERVER = "/plots/$instrument/$run_number/update"
LIVE_DATA_SERVER_DOMAIN = "livedata.sns.gov"
LIVE_DATA_SERVER_PORT = "443"
LIVE_DATA_SERVER_DOMAIN = environ.get("LIVE_DATA_SERVER_DOMAIN", "livedata.sns.gov")
LIVE_DATA_SERVER_PORT = environ.get("LIVE_DATA_SERVER_PORT", "443")

# set up the mapping of instruments to facilities
FACILITY_INFO = defaultdict(lambda: "SNS") # SNS is the default
Expand Down

0 comments on commit ba9d8be

Please sign in to comment.