mirror of
https://github.com/ghndrx/file-transformer-s3.git
synced 2026-02-10 06:45:05 +00:00
Initial commit: File Transformer S3 project with React dashboard and Knative functions
This commit is contained in:
82
env.example
Normal file
82
env.example
Normal file
@@ -0,0 +1,82 @@
|
||||
# =============================================================================
|
||||
# File Transformer S3 - Environment Configuration
|
||||
# =============================================================================
|
||||
|
||||
# Application Configuration
|
||||
APP_NAME=file-transformer-s3
|
||||
APP_ENV=development
|
||||
DEBUG=true
|
||||
|
||||
# Dashboard Configuration
|
||||
REACT_APP_PORT=3000
|
||||
REACT_APP_API_BASE_URL=http://localhost:8080
|
||||
REACT_APP_MINIO_ENDPOINT=http://localhost:9000
|
||||
REACT_APP_MINIO_CONSOLE=http://localhost:9001
|
||||
|
||||
# PostgreSQL Configuration
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=file_transformer
|
||||
POSTGRES_USER=file_user
|
||||
POSTGRES_PASSWORD=secure_password_123
|
||||
POSTGRES_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||
|
||||
# MinIO Configuration
|
||||
MINIO_ENDPOINT=localhost:9000
|
||||
MINIO_ACCESS_KEY=minioadmin
|
||||
MINIO_SECRET_KEY=minioadmin123
|
||||
MINIO_BUCKET_NAME=file-transformer-bucket
|
||||
MINIO_CONSOLE_PORT=9001
|
||||
MINIO_API_PORT=9000
|
||||
MINIO_USE_SSL=false
|
||||
|
||||
# Knative Functions Configuration
|
||||
KNATIVE_NAMESPACE=file-transformer
|
||||
KNATIVE_SERVICE_ACCOUNT=file-transformer-sa
|
||||
|
||||
# Function Endpoints (internal cluster services)
|
||||
FUNCTION_UPLOAD_ENDPOINT=http://file-upload-service.file-transformer.svc.cluster.local
|
||||
FUNCTION_TRANSFORM_ENDPOINT=http://file-transform-service.file-transformer.svc.cluster.local
|
||||
FUNCTION_DOWNLOAD_ENDPOINT=http://file-download-service.file-transformer.svc.cluster.local
|
||||
FUNCTION_METADATA_ENDPOINT=http://file-metadata-service.file-transformer.svc.cluster.local
|
||||
|
||||
# Local Development Function Endpoints
|
||||
LOCAL_FUNCTION_UPLOAD_ENDPOINT=http://localhost:5001
|
||||
LOCAL_FUNCTION_TRANSFORM_ENDPOINT=http://localhost:5002
|
||||
LOCAL_FUNCTION_DOWNLOAD_ENDPOINT=http://localhost:5003
|
||||
LOCAL_FUNCTION_METADATA_ENDPOINT=http://localhost:5004
|
||||
|
||||
# File Processing Configuration
|
||||
MAX_FILE_SIZE=100MB
|
||||
ALLOWED_FILE_TYPES=pdf,doc,docx,txt,csv,xlsx,xls,json,xml
|
||||
PROCESSING_TIMEOUT=300
|
||||
CHUNK_SIZE=1048576
|
||||
|
||||
# Security Configuration
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
||||
JWT_EXPIRY=24h
|
||||
CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FORMAT=json
|
||||
|
||||
# Monitoring Configuration
|
||||
METRICS_PORT=9090
|
||||
HEALTH_CHECK_PORT=8081
|
||||
|
||||
# Docker Configuration
|
||||
DOCKER_REGISTRY=your-registry.com
|
||||
DOCKER_NAMESPACE=file-transformer
|
||||
DOCKER_TAG=latest
|
||||
|
||||
# Kubernetes Configuration
|
||||
K8S_NAMESPACE=file-transformer
|
||||
K8S_REPLICAS=2
|
||||
K8S_RESOURCES_CPU=500m
|
||||
K8S_RESOURCES_MEMORY=512Mi
|
||||
|
||||
# Backup Configuration
|
||||
BACKUP_ENABLED=true
|
||||
BACKUP_SCHEDULE=0 2 * * *
|
||||
BACKUP_RETENTION_DAYS=30
|
||||
Reference in New Issue
Block a user