Skip to content

Add x402 environment configuration for main branch (production) #57

@crtahlin

Description

@crtahlin

Summary

Add x402 environment configuration for main branch deployments, analogous to what was done for dev branch in #53 and #54.

Prerequisites: Test x402 on dev branch thoroughly before applying to main.

Current State

Dev branch (staging) has:

Tasks

  1. Create GitHub production environment (if not exists)
  2. Modify deploy.yml to write env file for main branch (similar to dev)
  3. Modify docker-compose.yml to add env_file to provenance_gateway service
  4. Set production environment variables:
    • X402_ENABLED
    • X402_PAY_TO_ADDRESS (may be different from staging)
    • X402_NETWORK (likely base for mainnet, not base-sepolia)
    • X402_FACILITATOR_URL
    • X402_FREE_TIER_ENABLED

Files to modify

  • .github/workflows/deploy.yml - Add env file step for main branch
  • docker-compose.yml - Add env_file to main service

Notes

  • DO NOT merge to main until dev testing is complete
  • Production may use different network (base vs base-sepolia)
  • Production wallet address should be reviewed before setting
  • Consider if free tier should be enabled in production

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions