Files
deploy_home/ansible/roles/podman/templates/fulfillr/production.json.j2
T
Bastian de BylandClaude Opus 5 e174e259eb SCRUM-196: Read GA4 key from fulfillr_ga4_credentials_json
Match the vault variable name holding the service-account key file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 16:21:04 -04:00

66 lines
2.8 KiB
Django/Jinja

{# Production back-office config (fulfillr). Live tier:
- ecommerce store -> PROD Turso (fulfillr_prod_store_*)
- EasyPost + Stripe -> LIVE keys (fulfillr_prod_easypost_api_key / fulfillr_prod_stripe_api_key)
- AWS -> Fulfillr prod key (fulfillr_prod_access_key/secret_key), prod DynamoDB tables +
debyltech.digital.prod. fulfillr_region, fulfillr_tax_ein and fulfillr_hmac_arn are
shared vars (no dev/prod split). Mirrors dev.json.j2. (Snipcart removed post-migration.) #}
{
"easypost_api_key": "{{ easypost_api_key }}",
"stripe_api_key": "{{ fulfillr_prod_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-prod",
"cases_table": "debyltech-cases-prod",
"tickets_table": "debyltech-tickets-prod",
"store_database_url": "{{ fulfillr_prod_store_database_url }}",
"store_auth_token": "{{ fulfillr_prod_store_auth_token }}",
"download_base_url": "https://api.debyltech.com",
"aws": {
"access_key": "{{ fulfillr_prod_access_key }}",
"secret_key": "{{ fulfillr_prod_secret_key }}",
"region": "{{ fulfillr_region }}",
"bucket": "debyltech.digital.prod"
},
"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-prod",
"unsubscribe_table": "debyltech-unsubscribe-prod",
"email_log_table": "debyltech-email-log-prod",
"reviews_table": "debyltech-reviews-prod",
"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-prod",
"schedule_group": "default"
},
"recovery": {
"schedule_name": "cart-recovery-prod",
"schedule_group": "default"
}{%- if fulfillr_ga4_credentials_json is defined %},
{# GA4 Data API for the portal Traffic & funnel tab (SCRUM-196). Renders only once the
service-account key `fulfillr_ga4_credentials_json` (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_json if fulfillr_ga4_credentials_json is mapping else (fulfillr_ga4_credentials_json | from_json)) | to_json }}
}
{%- endif %}
}