Render an analytics block (property 353859448 + service-account key) into the fulfillr dev and prod configs once fulfillr_ga4_credentials is in the vault. Without the vault var the block is omitted and the portal reports GA as not connected. Remember to restart the container after deploy. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
66 lines
2.8 KiB
Django/Jinja
66 lines
2.8 KiB
Django/Jinja
{# Staging back-office config (fulfillr-dev). Isolated dev tier:
|
|
- ecommerce store -> STAGING Turso (fulfillr_dev_store_*)
|
|
- EasyPost + Stripe -> TEST keys (fulfillr_dev_easypost_api_key / fulfillr_dev_stripe_api_key)
|
|
- AWS -> FulfillrAPI-Dev key (fulfillr_dev_access_key/secret_key), scoped to the -dev
|
|
DynamoDB tables + debyltech.reviewr.dev. Outreach HMAC secret is reused read-only.
|
|
Never touches prod data or live payment APIs. (Snipcart removed post-migration.) #}
|
|
{
|
|
"easypost_api_key": "{{ fulfillr_dev_easypost_api_key }}",
|
|
"stripe_api_key": "{{ fulfillr_dev_stripe_api_key }}",
|
|
{# Snipcart key only for the one-time historical re-import (SCRUM-140); injected
|
|
via EXTRA_VARS at deploy time, renders empty (import disabled) on normal deploys. #}
|
|
"snipcart_api_key": "{{ fulfillr_snipcart_api_key | default('') }}",
|
|
"backinstock_table": "debyltech-backinstock-dev",
|
|
"cases_table": "debyltech-cases-dev",
|
|
"tickets_table": "debyltech-tickets-dev",
|
|
"store_database_url": "{{ fulfillr_dev_store_database_url }}",
|
|
"store_auth_token": "{{ fulfillr_dev_store_auth_token }}",
|
|
"download_base_url": "https://api-dev.debyltech.com",
|
|
"aws": {
|
|
"access_key": "{{ fulfillr_dev_access_key }}",
|
|
"secret_key": "{{ fulfillr_dev_secret_key }}",
|
|
"region": "{{ fulfillr_region }}",
|
|
"bucket": "debyltech.digital.dev"
|
|
},
|
|
"tax": {
|
|
"ein": "{{ fulfillr_tax_ein }}",
|
|
"ioss": null
|
|
},
|
|
"sender_address": {
|
|
"city": "Newbury",
|
|
"country": "US",
|
|
"email": "sales@debyltech.com",
|
|
"name": "de Byl Technologies LLC",
|
|
"phone": "6034160859",
|
|
"state": "NH",
|
|
"street1": "976 Route 103",
|
|
"street2": "Unit 95",
|
|
"zip": "03255"
|
|
},
|
|
"outreach": {
|
|
"outreach_table": "debyltech-outreach-dev",
|
|
"unsubscribe_table": "debyltech-unsubscribe-dev",
|
|
"email_log_table": "debyltech-email-log-dev",
|
|
"reviews_table": "debyltech-reviews-dev",
|
|
"hmac_secret_arn": "{{ fulfillr_hmac_arn }}",
|
|
"ses_from_email": "noreply@debyltech.com",
|
|
"ses_reply_to": "support@debyltech.com",
|
|
"ses_region": "us-east-1",
|
|
"base_url": "https://debyltech.com",
|
|
"schedule_name": "review-outreach-dev",
|
|
"schedule_group": "default"
|
|
},
|
|
"recovery": {
|
|
"schedule_name": "cart-recovery-dev",
|
|
"schedule_group": "default"
|
|
}{%- if fulfillr_ga4_credentials is defined %},
|
|
{# GA4 Data API for the portal Traffic & funnel tab (SCRUM-196). Renders only once the
|
|
service-account key `fulfillr_ga4_credentials` (the key JSON, as a mapping or string)
|
|
is in the vault; without it the traffic endpoint reports configured:false. #}
|
|
"analytics": {
|
|
"ga4_property_id": "{{ fulfillr_ga4_property_id }}",
|
|
"ga4_credentials": {{ (fulfillr_ga4_credentials if fulfillr_ga4_credentials is mapping else (fulfillr_ga4_credentials | from_json)) | to_json }}
|
|
}
|
|
{%- endif %}
|
|
}
|