Skip to content

Commit

Permalink
chore: update Argus values (#997)
Browse files Browse the repository at this point in the history
Co-authored-by: Timmy Huang <[email protected]>
Co-authored-by: tihuan <[email protected]>
  • Loading branch information
3 people authored Jun 20, 2024
1 parent dc7be25 commit c53322c
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 20 deletions.
17 changes: 0 additions & 17 deletions .infra/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ services:
requests:
cpu: 2
memory: 2Gi
env:
- name: REMOTE_DEV_PREFIX
value: /explorer-devstack
- name: DEPLOYMENT_STAGE
value: dev
- name: DATA_LOCATOR_DOMAIN
value: api.cellxgene.dev.single-cell.czi.technology
- name: CXG_BUCKET_PATH
value: hosted-cellxgene-dev
- name: AWS_REGION
value: us-west-2
- name: AWS_DEFAULT_REGION
value: us-west-2
- name: API_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)
- name: WEB_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)
ingress:
hosts:
- paths:
Expand Down
27 changes: 27 additions & 0 deletions .infra/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,30 @@ services:
image:
tag: sha-3883f979
replicaCount: 3
resources:
limits:
cpu: 64
memory: 50Gi
requests:
cpu: 32
memory: 24Gi
env:
# env vars common to all deployment stages
- name: AWS_REGION
value: us-west-2
- name: AWS_DEFAULT_REGION
value: us-west-2
- name: REMOTE_DEV_PREFIX
value: /$(__ARGUS_STACK_NAME)
- name: DATA_LOCATOR_DOMAIN
value: api.$(__ARGUS_STACK_INGRESS_HOST)
- name: WEB_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)

# env vars specific to this deployment stage
- name: DEPLOYMENT_STAGE
value: prod
- name: API_DOMAIN
value: api.$(__ARGUS_STACK_INGRESS_HOST)
- name: CXG_BUCKET_PATH
value: hosted-cellxgene-prod
22 changes: 21 additions & 1 deletion .infra/rdev/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
services:
explorer:
image:
tag: sha-a5b576b2
tag: sha-4cfffeff
replicaCount: 1
env:
# env vars common to all deployment stages
- name: AWS_REGION
value: us-west-2
- name: AWS_DEFAULT_REGION
value: us-west-2
- name: REMOTE_DEV_PREFIX
value: /$(__ARGUS_STACK_NAME)
- name: DATA_LOCATOR_DOMAIN
value: api.$(__ARGUS_STACK_INGRESS_HOST)
- name: WEB_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)

# env vars specific to this deployment stage
- name: DEPLOYMENT_STAGE
value: rdev
- name: API_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)
- name: CXG_BUCKET_PATH
value: hosted-cellxgene-dev
27 changes: 27 additions & 0 deletions .infra/staging/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,30 @@ services:
image:
tag: sha-3883f979
replicaCount: 1
resources:
limits:
cpu: 4
memory: 14Gi
requests:
cpu: 2
memory: 4Gi
env:
# env vars common to all deployment stages
- name: AWS_REGION
value: us-west-2
- name: AWS_DEFAULT_REGION
value: us-west-2
- name: REMOTE_DEV_PREFIX
value: /$(__ARGUS_STACK_NAME)
- name: DATA_LOCATOR_DOMAIN
value: api.$(__ARGUS_STACK_INGRESS_HOST)
- name: WEB_DOMAIN
value: $(__ARGUS_STACK_INGRESS_HOST)

# env vars specific to this deployment stage
- name: DEPLOYMENT_STAGE
value: staging
- name: API_DOMAIN
value: api.$(__ARGUS_STACK_INGRESS_HOST)
- name: CXG_BUCKET_PATH
value: hosted-cellxgene-staging
6 changes: 4 additions & 2 deletions server/ecs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ def _before_adding_routes(app, app_config):

HUBSPOT_FORMS_URL = "https://forms.hsforms.com"

EXPLORER_DEV_URL = "https://cellxgene.dev.single-cell.czi.technology"

csp = {
"default-src": ["'self'", HUBSPOT_FORMS_URL, HUBSPOT_JS_URL],
"form-action": ["'self'", HUBSPOT_FORMS_URL],
"connect-src": ["'self'", PLAUSIBLE_URL, HUBSPOT_FORMS_URL] + extra_connect_src,
"connect-src": ["'self'", PLAUSIBLE_URL, HUBSPOT_FORMS_URL, EXPLORER_DEV_URL] + extra_connect_src,
"script-src": ["'self'", "'unsafe-eval'", PLAUSIBLE_URL, HUBSPOT_FORMS_URL, HUBSPOT_JS_URL] + script_hashes,
"style-src": ["'self'", "'unsafe-inline'"],
"img-src": ["'self'", "https://cellxgene.cziscience.com"]
"img-src": ["'self'", "https://cellxgene.cziscience.com", EXPLORER_DEV_URL]
+ extra_connect_src
+ ["data:", HUBSPOT_FORMS_URL],
"object-src": ["'none'"],
Expand Down

0 comments on commit c53322c

Please sign in to comment.