#!/bin/bash # LittleShop Production Environment Variables Setup # This script sets the required environment variables for production deployment echo "Setting up production environment variables..." # JWT Configuration (CRITICAL - Must be set for authentication to work) export JWT_SECRET_KEY="YourSuperSecretKeyHereThatIsAtLeast32CharactersLongForSecurity2025!" export JWT_ISSUER="LittleShop-Production" export JWT_AUDIENCE="LittleShop-Production" # SilverPAY Configuration export SILVERPAY_BASE_URL="http://31.97.57.205:8001" export SILVERPAY_API_KEY="sk_live_edba50ac32dfa7f997b2597d5785afdbaf17b8a9f4a73dfbbd46dbe2a02e5757" export SILVERPAY_WEBHOOK_SECRET="your-webhook-secret-here" export SILVERPAY_WEBHOOK_URL="https://littleshop.silverlabs.uk/api/silverpay/webhook" # Royal Mail Configuration (if needed) export ROYALMAIL_CLIENT_ID="" export ROYALMAIL_CLIENT_SECRET="" export ROYALMAIL_SENDER_ADDRESS="" export ROYALMAIL_SENDER_CITY="" export ROYALMAIL_SENDER_POSTCODE="" # WebPush Configuration (for push notifications) # These are sample keys - generate your own for production using: npx web-push generate-vapid-keys export WEBPUSH_VAPID_PUBLIC_KEY="BMc6fFJZ8oIQKQzcl3kMnP9tTsjrm3oI_VxLt3lAGYUMWGInzDKn7jqclEoZzjvXy1QXGFb3dIun8mVBwh-QuS4" export WEBPUSH_VAPID_PRIVATE_KEY="Gs9Sp4eqhsv0vNJkdgzoYmM7C3Db0xp9KdkRRnJEfOI" export WEBPUSH_SUBJECT="mailto:admin@littleshop.com" # TeleBot Configuration export TELEBOT_API_URL="http://localhost:3000" # Adjust to actual TeleBot URL export TELEBOT_API_KEY="your-telebot-api-key" echo "Environment variables set successfully!" echo "" echo "To verify JWT is set correctly:" echo "JWT_SECRET_KEY length: ${#JWT_SECRET_KEY} characters (should be >= 32)" echo "" echo "To run the application:" echo "dotnet run --urls=http://localhost:8080"