Skip to content

Commit

Permalink
Rubin support | add SLAC domain to ALLOWED_HOSTS temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorchug committed Nov 9, 2022
1 parent 06ea370 commit 24cf84a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions core/settings/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
from core.settings.local import MY_SECRET_KEY, LOG_ROOT

ALLOWED_HOSTS = [
### cern.ch
# cern.ch
'.cern.ch', # Allow domain and subdomains
'.cern.ch.', # Also allow FQDN and subdomains
### bigpanda.cern.ch
# bigpanda.cern.ch
'bigpanda.cern.ch', # Allow domain and subdomains
'bigpanda.cern.ch.', # Also allow FQDN and subdomains
### pandawms.org
'.pandawms.org', # Allow domain and subdomains
'.pandawms.org.', # Also allow FQDN and subdomains

'127.0.0.1', '.localhost'
# @SLAC for Rubin
'.slac.stanford.edu',
'.slac.stanford.edu.',
# local
'127.0.0.1',
'.localhost'
]

if 'BIGMON_HOST' in os.environ:
Expand Down

0 comments on commit 24cf84a

Please sign in to comment.