forked from crtahlin/swarm_connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Summary
Configure GitHub environment variables for x402 payment integration on the dev branch staging deployment.
Changes
1. Deploy workflow (.github/workflows/deploy.yml)
- Add
stagingenvironment fordevbranch deployments - Write
/opt/swarm_connect_dev.envfile with x402 configuration from GitHub variables - Variables use defaults if not set (x402 disabled by default)
2. Docker Compose (docker-compose.yml)
- Add
env_filedirective toprovenance_gateway_devservice - Points to
/opt/swarm_connect_dev.envfor x402 config - Main/production service unchanged
GitHub Variables to Set (staging environment)
After merging, set these variables for the staging environment:
gh variable set X402_ENABLED --body "true" --env staging
gh variable set X402_PAY_TO_ADDRESS --body "<wallet-address>" --env staging
gh variable set X402_NETWORK --body "base-sepolia" --env staging
gh variable set X402_FACILITATOR_URL --body "https://x402.org/facilitator" --env staging
gh variable set X402_FREE_TIER_ENABLED --body "true" --env stagingHow It Works
- Push to
devtriggers deployment - Workflow uses
stagingenvironment (gets GitHub variables) - Workflow writes env file to
/opt/swarm_connect_dev.env - Docker Compose reads env file for dev container
- x402 middleware activates with configured settings
Deployment URLs
| Environment | URL | Branch | x402 |
|---|---|---|---|
| Staging | provenance-gateway.dev.datafund.io |
dev |
Enabled |
| Production | provenance-gateway.datafund.io |
main |
Disabled |
Notes
- All x402 settings are GitHub Variables (not Secrets) - no private keys needed
- Facilitator (x402.org) handles payment settlement and gas
- Free tier enabled by default for users without x402 capability
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels