Skip to content

Commit

Permalink
chore: add missing config.yaml file (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzi authored Jul 8, 2022
1 parent 5311344 commit b94d32b
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions hosted/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
server:
app:
verbose: true
debug: true
host: 0.0.0.0
port: null
open_browser: false
force_https: false
flask_secret_key: "asd"
generate_cache_control_headers: true
server_timing_headers: true
csp_directives:
img-src:
- https://www.google-analytics.com
script-src:
- https://www.google-analytics.com
- https://ssl.google-analytics.com
- browser.sentry-cdn.com
connect-src:
- https://www.google-analytics.com
- sentry.prod.si.czi.technology


# if env == "prod":
# api_base_url = f"https://api.cellxgene.cziscience.com/cellxgene/"
# web_base_url = f"https://cellxgene.cziscience.com/" # Also used for the multi_dataset index page
# data_locator_url = f"https://api.cellxgene.cziscience.com/dp/v1"
# else:
# api_base_url = f"https://api.cellxgene.{env}.single-cell.czi.technology/cellxgene/"
# web_base_url = f"https://cellxgene.{env}.single-cell.czi.technology/" # Also used for the multi_dataset index page
# data_locator_url = f"https://api.cellxgene.{env}.single-cell.czi.technology/dp/v1"

api_base_url: https://${API_DOMAIN}/cellxgene/
web_base_url: https://${WEB_DOMAIN}/

multi_dataset:
dataroot:
covid19:
base_url: d
dataroot: s3://${CXG_BUCKET_PATH}
corpora_data_portal:
base_url: e
dataroot: s3://${CXG_BUCKET_PATH}

# The index page when in multi-dataset mode:
# false or null: this returns a 404 code
# true: loads a test index page, which links to the datasets that are available in the dataroot
# string/URL: redirect to this URL: flask.redirect(config.multi_dataset__index)
index: https://${WEB_DOMAIN}/

# A list of allowed matrix types. If an empty list, then all matrix types are allowed
allowed_matrix_types: []

data_locator:
api_base: https://${DATA_LOCATOR_DOMAIN}/dp/v1
s3:
# s3 region name.
# if true, then the s3 location is automatically determined from the datapath or dataroot.
# if false/null, then do not set.
# if a string, then use that value (e.g. us-east-1).
region_name: true

adaptor:
cxg_adaptor:
# The key/values under tiledb_ctx will be used to initialize the tiledb Context.
# If 'vfs.s3.region' is not set, then it will automatically use the setting from
# data_locator / s3 / region_name.
tiledb_ctx:
sm.tile_cache_size: 60129542144 # 56 GB
py.init_buffer_bytes: 536870912 # 512MiB

limits:
column_request_max: 32
diffexp_cellcount_max: 1500000

dataset:
app:
# Scripts can be a list of either file names (string) or dicts containing keys src, integrity and crossorigin.
# these will be injected into the index template as script tags with these attributes set.
scripts:
- src: "https://browser.sentry-cdn.com/5.15.5/bundle.min.js"
integrity: "sha384-wF7Jc4ZlWVxe/L8Ji3hOIBeTgo/HwFuaeEfjGmS3EXAG7Y+7Kjjr91gJpJtr+PAT"
crossorigin: "anonymous"

# Inline scripts are a list of file names, where the contents of the file will be injected into the index.
# inline_scripts:
# - rdev-ga.js
# - staging-sentry.js

about_legal_tos: /tos/
about_legal_privacy: /privacy/


presentation:
max_categories: 1000
custom_colors: true

embeddings:
names: []

diffexp:
enable: true
lfc_cutoff: 0.01
top_n: 10

0 comments on commit b94d32b

Please sign in to comment.