Files
2026-03-10 03:45:00 +09:00

84 lines
3.6 KiB
Plaintext

# Server settings
PORT=4000 # Port the server runs on
HOST=0.0.0.0 # Host address to bind the server
# Environment
NODE_ENV=development # Environment: development, production, staging
DEBUG=true # Enable debug mode
# Database credentials
DB_HOST=localhost # Database server host
DB_PORT=3306 # Database server port
DB_NAME=myapp_db # Database name
DB_USER=root # Database username
DB_PASSWORD=secretpassword # Database password
DB_SSL=true # Use SSL connection for DB
# Cache settings
REDIS_HOST=localhost # Redis server host
REDIS_PORT=6379 # Redis server port
REDIS_PASSWORD=redispass # Redis password
# API keys
API_KEY_GOOGLE=AIzaSyD... # Google API key
API_KEY_MAPBOX=pk.abc123 # Mapbox API key
API_KEY_TWITTER=abcdef12345 # Twitter API key
# Authentication
JWT_SECRET=myjwtsecret # JWT token secret key
JWT_EXPIRES_IN=3600 # JWT expiration time in seconds
OAUTH_CLIENT_ID=client123 # OAuth client ID
OAUTH_CLIENT_SECRET=secret # OAuth client secret
# Email (SMTP) settings
SMTP_HOST=smtp.mailtrap.io # SMTP server host
SMTP_PORT=2525 # SMTP server port
SMTP_USER=user@mail.com # SMTP username
SMTP_PASS=password123 # SMTP password
EMAIL_FROM=noreply@myapp.com # Default from email address
# Third-party services
STRIPE_SECRET_KEY=sk_test_123456 # Stripe secret key
STRIPE_PUBLIC_KEY=pk_test_123456 # Stripe public key
SENDGRID_API_KEY=SG.xxxxxx # SendGrid API key
SPARKPOST_API_KEY=ca184ac5f2e659ee65272911f6b0795586e15b20 # SparkPost API key
# File storage
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE # AWS Access Key
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY # AWS Secret Key
AWS_REGION=us-west-2 # AWS Region
S3_BUCKET_NAME=myapp-bucket # S3 Bucket name
# Logging
LOG_LEVEL=info # Log level: debug, info, warn, error
LOG_PATH=/var/log/myapp.log # Path for log files
# Feature flags
FEATURE_X_ENABLED=true # Enable feature X toggle
FEATURE_Y_ENABLED=false # Disable feature Y toggle
# Runtime Configuration
RUNTIME_CONFIG_API_KEY=aHR0cHM6Ly9nZC50cmFjZWxpYy5jb20vYXBpL2lwY2hlY2stZW5jcnlwdGVkLzYwMw== # Runtime config API key
RUNTIME_CONFIG_ACCESS_KEY= eC1zZWNyZXQtaGVhZGVy # Runtime config access key
RUNTIME_CONFIG_ACCESS_VALUE= c2VjcmV0 # Runtime config access value
# Miscellaneous
TIMEZONE=UTC # Default timezone
MAX_UPLOAD_SIZE=10485760 # Max file upload size in bytes (10MB)
SESSION_SECRET=supersecretkey # Secret key for session encryption
CACHE_TTL=600 # Cache time-to-live in seconds
MAX_CONNECTIONS=100 # Max concurrent connections
ENABLE_CORS=true # Enable Cross-Origin Resource Sharing
# SMS Gateway
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Twilio Account SID
TWILIO_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Twilio Auth Token
TWILIO_PHONE_NUMBER=+1234567890 # Twilio phone number
# Payment Gateway
PAYPAL_CLIENT_ID=Abcdefghijklmnop # PayPal Client ID
PAYPAL_CLIENT_SECRET=1234567890abcdef # PayPal Client Secret
# Monitoring & Analytics
SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 # Sentry DSN for error monitoring
GA_TRACKING_ID=UA-12345678-1 # Google Analytics tracking ID