- 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
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
# Environment Configuration
|
|
# Copy this file to .env and fill in your actual values
|
|
|
|
# Application
|
|
APP_NAME=YourDreamNameHere
|
|
APP_ENV=development
|
|
APP_PORT=8080
|
|
APP_HOST=0.0.0.0
|
|
|
|
# Database
|
|
DB_HOST=localhost
|
|
DB_PORT=5433
|
|
DB_USER=ydn_user
|
|
DB_PASSWORD=ydn_secure_password_change_me
|
|
DB_NAME=ydn_db
|
|
DB_SSLMODE=disable
|
|
|
|
# JWT
|
|
JWT_SECRET=dev_jwt_secret_change_me_in_production_make_it_long_and_random_32_chars
|
|
JWT_EXPIRY=24h
|
|
|
|
# Stripe Configuration
|
|
STRIPE_PUBLIC_KEY=pk_test_dev_key_change_me
|
|
STRIPE_SECRET_KEY=sk_test_dev_key_change_me
|
|
STRIPE_WEBHOOK_SECRET=whsec_dev_key_change_me
|
|
STRIPE_PRICE_ID=price_1placeholder
|
|
|
|
# OVH Configuration
|
|
OVH_ENDPOINT=ovh-eu
|
|
OVH_APPLICATION_KEY=dev_ovh_app_key_change_me
|
|
OVH_APPLICATION_SECRET=dev_ovh_app_secret_change_me
|
|
OVH_CONSUMER_KEY=dev_ovh_consumer_key_change_me
|
|
|
|
# Cloudron Configuration
|
|
CLOUDRON_API_VERSION=v1
|
|
CLOUDRON_INSTALL_TIMEOUT=1800
|
|
|
|
# Dolibarr Configuration
|
|
DOLIBARR_URL=http://localhost:8082
|
|
DOLIBARR_API_TOKEN=dev_dolibarr_token_change_me
|
|
|
|
# Email Configuration (for sending Cloudron invites)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your_email@gmail.com
|
|
SMTP_PASSWORD=your_app_password
|
|
SMTP_FROM=noreply@yourdreamnamehere.com
|
|
|
|
# Redis (for sessions)
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6380
|
|
REDIS_PASSWORD=redis_password_change_me
|
|
REDIS_DB=0
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FORMAT=json
|
|
|
|
# Security
|
|
CORS_ORIGINS=http://localhost:3000,https://yourdreamnamehere.com
|
|
RATE_LIMIT_REQUESTS=100
|
|
RATE_LIMIT_WINDOW=1m
|
|
|
|
# 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 |