# ------------------------------------------------------------------ # Example .env for Colanode Server # Copy this file to ".env" and adjust the values as needed. # ------------------------------------------------------------------ # ─────────────────────────────────────────────────────────────── # General Node/Server Config # ─────────────────────────────────────────────────────────────── NODE_ENV=production SERVER_NAME="Colanode Local" SERVER_AVATAR= SERVER_MODE=standalone # 'standalone' or 'cluster' # SERVER_PATH_PREFIX= # SERVER_CORS_ORIGIN=http://localhost:4000 # SERVER_CORS_MAX_AGE=7200 # ─────────────────────────────────────────────────────────────── # Logging Config # Possible values: 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'silent' # Defalt is 'info' # ─────────────────────────────────────────────────────────────── # LOGGING_LEVEL=info # ─────────────────────────────────────────────────────────────── # Account Configuration # ─────────────────────────────────────────────────────────────── ACCOUNT_VERIFICATION_TYPE=automatic # automatic | manual | email ACCOUNT_OTP_TIMEOUT=600 # seconds # ACCOUNT_GOOGLE_ENABLED=true # ACCOUNT_GOOGLE_CLIENT_ID= # ACCOUNT_GOOGLE_CLIENT_SECRET= # ─────────────────────────────────────────────────────────────── # Workspace Configuration # ─────────────────────────────────────────────────────────────── # Optional, leave empty for no limits # WORKSPACE_STORAGE_LIMIT=10737418240 # 10 GB # WORKSPACE_MAX_FILE_SIZE=104857600 # 100 MB # ─────────────────────────────────────────────────────────────── # User Configuration # ─────────────────────────────────────────────────────────────── USER_STORAGE_LIMIT=10737418240 # 10 GB USER_MAX_FILE_SIZE=104857600 # 100 MB # ─────────────────────────────────────────────────────────────── # PostgreSQL Configuration # ─────────────────────────────────────────────────────────────── POSTGRES_URL=postgres://colanode_user:postgrespass123@localhost:5432/colanode_db # POSTGRES_SSL_REJECT_UNAUTHORIZED=false # POSTGRES_SSL_CA= # POSTGRES_SSL_KEY= # POSTGRES_SSL_CERT= # ─────────────────────────────────────────────────────────────── # Redis Configuration # ─────────────────────────────────────────────────────────────── REDIS_URL=redis://:your_valkey_password@localhost:6379/0 # Optional configurations # REDIS_DB=0 # REDIS_JOBS_QUEUE_NAME=jobs # REDIS_JOBS_QUEUE_PREFIX=colanode # REDIS_TUS_LOCK_PREFIX=colanode:tus:lock # REDIS_TUS_KV_PREFIX=colanode:tus:kv # REDIS_EVENTS_CHANNEL=events # ─────────────────────────────────────────────────────────────── # S3 Storage Configuration (MinIO) # ─────────────────────────────────────────────────────────────── STORAGE_S3_ENDPOINT=http://localhost:9000 STORAGE_S3_ACCESS_KEY=minioadmin STORAGE_S3_SECRET_KEY=your_minio_password STORAGE_S3_BUCKET=colanode STORAGE_S3_REGION=us-east-1 STORAGE_S3_FORCE_PATH_STYLE=true # ─────────────────────────────────────────────────────────────── # SMTP Configuration # ─────────────────────────────────────────────────────────────── SMTP_ENABLED=false # SMTP_HOST=smtp # SMTP_PORT=1025 # SMTP_USER= # SMTP_PASSWORD= # SMTP_EMAIL_FROM=your_email@example.com # SMTP_EMAIL_FROM_NAME=Colanode