- Changed JSON naming policy from CamelCase to SnakeCaseLower for SilverPay API compatibility - Fixed field name from 'fiat_amount' to 'amount' in request body - Used unique payment ID instead of order ID to avoid duplicate external_id conflicts - Modified SilverPayApiResponse to handle string amounts from API - Added [JsonIgnore] attributes to computed properties to prevent JSON serialization conflicts - Fixed test compilation errors (mock service and enum casting issues) - Updated SilverPay endpoint to http://10.0.0.52:8001/ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
2.8 KiB
Plaintext
57 lines
2.8 KiB
Plaintext
# LittleShop Production Environment Variables
|
|
# Copy this file to .env and update with your actual values
|
|
# NEVER commit the .env file to Git - it contains sensitive credentials
|
|
|
|
# =============================================================================
|
|
# JWT Configuration (REQUIRED)
|
|
# =============================================================================
|
|
# Generate with: openssl rand -base64 48 | cut -c1-64
|
|
JWT_SECRET_KEY=YourSuperSecretKeyThatIsAtLeast64CharactersLongForProductionUsage
|
|
|
|
# =============================================================================
|
|
# SilverPay Integration (REQUIRED for payment processing)
|
|
# =============================================================================
|
|
# SilverPay Base URL
|
|
# - For VPN/LAN access: http://bank.lan or http://10.13.13.1:8001
|
|
# - For direct access: http://31.97.57.205:8001
|
|
SILVERPAY_URL=http://bank.lan
|
|
|
|
# SilverPay API Key (get from SilverPay admin panel)
|
|
SILVERPAY_API_KEY=your-silverpay-api-key-here
|
|
|
|
# SilverPay Webhook Secret (shared secret for webhook verification)
|
|
SILVERPAY_WEBHOOK_SECRET=your-webhook-secret-here
|
|
|
|
# LittleShop Webhook URL (where SilverPay sends payment notifications)
|
|
# - For VPN/LAN: http://hq.lan/api/orders/payments/webhook
|
|
# - For public: http://srv1002428.hstgr.cloud:5100/api/orders/payments/webhook
|
|
SILVERPAY_WEBHOOK_URL=http://hq.lan/api/orders/payments/webhook
|
|
|
|
# =============================================================================
|
|
# BTCPay Server Configuration (OPTIONAL - legacy, prefer SilverPay)
|
|
# =============================================================================
|
|
BTCPAY_SERVER_URL=https://your-btcpay-server.com
|
|
BTCPAY_STORE_ID=your-store-id
|
|
BTCPAY_API_KEY=your-api-key
|
|
BTCPAY_WEBHOOK_SECRET=your-webhook-secret
|
|
|
|
# =============================================================================
|
|
# WebPush Notifications (REQUIRED for push notifications)
|
|
# =============================================================================
|
|
# Generate VAPID keys with: dotnet run --project VapidKeyGenerator
|
|
WEBPUSH_VAPID_PUBLIC_KEY=your-vapid-public-key-here
|
|
WEBPUSH_VAPID_PRIVATE_KEY=your-vapid-private-key-here
|
|
WEBPUSH_SUBJECT=mailto:admin@your-domain.com
|
|
|
|
# =============================================================================
|
|
# TeleBot Integration (REQUIRED if using TeleBot)
|
|
# =============================================================================
|
|
# TeleBot API URL (Docker network name or direct URL)
|
|
TELEBOT_API_URL=http://telebot-service:5010
|
|
# Internal API key for LittleShop <-> TeleBot communication
|
|
TELEBOT_API_KEY=your-random-secure-api-key-here
|
|
|
|
# =============================================================================
|
|
# Docker Compose Configuration (OPTIONAL)
|
|
# =============================================================================
|
|
COMPOSE_PROJECT_NAME=littleshop |