- Add Go modules with required dependencies (Gin, UUID, JWT, etc.) - Implement main web server with landing page endpoint - Add comprehensive API endpoints for health and status - Include proper error handling and request validation - Set up CORS middleware and security headers
70 lines
1.8 KiB
Plaintext
70 lines
1.8 KiB
Plaintext
# EMERGENCY PRODUCTION CONFIGURATION
|
|
# Copy this file to .env.prod and fill in your values
|
|
|
|
# Domain Configuration
|
|
DOMAIN=yourdreamnamehere.com
|
|
|
|
# Database Configuration (generate random passwords)
|
|
DB_HOST=ydn-db
|
|
DB_PORT=5432
|
|
DB_USER=ydn_user
|
|
DB_PASSWORD=CHANGE_THIS_SECURE_DB_PASSWORD_123
|
|
DB_NAME=ydn_db
|
|
DB_SSLMODE=require
|
|
|
|
# Redis Configuration
|
|
REDIS_HOST=ydn-redis
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=CHANGE_THIS_SECURE_REDIS_PASSWORD_456
|
|
REDIS_DB=0
|
|
|
|
# JWT Configuration
|
|
JWT_SECRET=CHANGE_THIS_TO_VERY_LONG_RANDOM_JWT_SECRET_789
|
|
|
|
# Stripe Configuration
|
|
STRIPE_PUBLIC_KEY=pk_live_your_stripe_public_key
|
|
STRIPE_SECRET_KEY=sk_live_your_stripe_secret_key
|
|
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
|
|
STRIPE_PRICE_ID=price_your_price_id
|
|
|
|
# OVH Configuration
|
|
OVH_ENDPOINT=ovh-eu
|
|
OVH_APPLICATION_KEY=your_ovh_application_key
|
|
OVH_APPLICATION_SECRET=your_ovh_application_secret
|
|
OVH_CONSUMER_KEY=your_ovh_consumer_key
|
|
|
|
# Email Configuration
|
|
SMTP_HOST=smtp.yourprovider.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your_email@yourdomain.com
|
|
SMTP_PASSWORD=your_smtp_password
|
|
SMTP_FROM=noreply@yourdreamnamehere.com
|
|
|
|
# Dolibarr Configuration
|
|
DOLIBARR_API_TOKEN=your_dolibarr_api_token
|
|
DOLIBARR_ADMIN_PASSWORD=CHANGE_THIS_ADMIN_PASSWORD
|
|
|
|
# Monitoring
|
|
GRAFANA_ADMIN_PASSWORD=CHANGE_THIS_GRAFANA_PASSWORD
|
|
|
|
# Docker Configuration
|
|
DOCKER_REGISTRY=your-registry.com/ydn-app
|
|
VERSION=v1.0.0
|
|
|
|
# Contact Information (for domain registration)
|
|
YDN_CONTACT_FIRSTNAME=YourDreamNameHere
|
|
YDN_CONTACT_LASTNAME=Customer
|
|
YDN_CONTACT_PHONE=+1234567890
|
|
YDN_CONTACT_COUNTRY=US
|
|
YDN_TECH_CONTACT_FIRSTNAME=Technical
|
|
YDN_TECH_CONTACT_LASTNAME=Support
|
|
YDN_TECH_CONTACT_EMAIL=tech@yourdreamnamehere.com
|
|
YDN_TECH_CONTACT_PHONE=+1234567890
|
|
|
|
# Application Configuration
|
|
APP_ENV=production
|
|
LOG_LEVEL=info
|
|
LOG_FORMAT=json
|
|
CORS_ORIGINS=https://yourdreamnamehere.com
|
|
RATE_LIMIT_REQUESTS=100
|
|
RATE_LIMIT_WINDOW=1m |