feat: add API_DOMAIN environment variable for production configuration
- Add API_DOMAIN env var to set domain/IP for API in production - Update swagger.config.js to use dynamic server URLs - Update server.js CORS configuration to use API_DOMAIN - Update env.example with new API_DOMAIN field - Add comprehensive documentation in README.md - Fixes CORS issues in Swagger docs for production deployments
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
PORT=3000
|
||||
NODE_ENV=development
|
||||
|
||||
# API Domain/IP Configuration (for Swagger docs and CORS)
|
||||
API_DOMAIN=localhost:3000
|
||||
|
||||
# Security Configuration
|
||||
ALLOW_REDEEM_DOMAINS=*
|
||||
|
||||
|
||||
# Default Lightning Address (used when no address is provided in redeem requests)
|
||||
DEFAULT_LIGHTNING_ADDRESS=admin@your-domain.com
|
||||
|
||||
|
||||
Reference in New Issue
Block a user