# =============================================================================
# Storify - Object Storage Configuration
# =============================================================================
#
# This file contains example environment variables for configuring storify.
# Copy this file to .env and fill in your actual values.
#
# Supported storage providers: oss, s3, minio, fs, hdfs
# =============================================================================
# =============================================================================
# STORAGE PROVIDER CONFIGURATION
# =============================================================================
# Storage provider type (required)
# Options: oss, s3, minio, fs, hdfs
# Default: oss
STORAGE_PROVIDER=oss
# =============================================================================
# CLOUD STORAGE CONFIGURATION (OSS, S3, MinIO)
# =============================================================================
# Bucket name (required for cloud storage)
STORAGE_BUCKET=your-bucket-name
# Access credentials (required for cloud storage)
STORAGE_ACCESS_KEY_ID=your-access-key-id
STORAGE_ACCESS_KEY_SECRET=your-secret-access-key
# Region (optional, provider-specific)
STORAGE_REGION=us-east-1
# Custom endpoint (optional, for MinIO or custom S3-compatible services)
STORAGE_ENDPOINT=https://your-endpoint.com
# =============================================================================
# PROVIDER-SPECIFIC ALIASES
# =============================================================================
#
# The following variables are aliases for specific providers.
# They take precedence over the generic STORAGE_* variables.
# OSS-specific aliases
OSS_BUCKET=your-oss-bucket
OSS_ACCESS_KEY_ID=your-oss-access-key
OSS_ACCESS_KEY_SECRET=your-oss-secret-key
OSS_REGION=cn-hangzhou
OSS_ENDPOINT=https://oss-cn-hangzhou.aliyuncs.com
# AWS S3-specific aliases
AWS_S3_BUCKET=your-s3-bucket
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
AWS_DEFAULT_REGION=us-east-1
# MinIO-specific aliases
MINIO_BUCKET=your-minio-bucket
MINIO_ACCESS_KEY=your-minio-access-key
MINIO_SECRET_KEY=your-minio-secret-key
MINIO_ENDPOINT=http://localhost:9000
MINIO_DEFAULT_REGION=us-east-1
# COS-specific aliases
COS_PROVIDER=cos
COS_BUCKET=my-cos-bucket
COS_ENDPOINT="http://cos.ap-nanjing.myqcloud.com"
COS_ACCESS_KEY_ID=your-cos-access-key
COS_ACCESS_KEY_SECRET=your-cos-secret-key
COS_REGION=ap-nanjing
# =============================================================================
# LOCAL FILESYSTEM CONFIGURATION
# =============================================================================
# Root path for local filesystem storage (optional)
# Default: ./storage
STORAGE_ROOT_PATH=./local-storage
# =============================================================================
# HDFS CONFIGURATION
# =============================================================================
# HDFS NameNode address (required for HDFS)
# Example: localhost:9000 or hdfs://namenode:9000
HDFS_NAME_NODE=localhost:9000
# HDFS root path (optional)
# Default: /
HDFS_ROOT_PATH=/
# =============================================================================
# EXAMPLE CONFIGURATIONS
# =============================================================================
# Example 1: Alibaba Cloud OSS
# STORAGE_PROVIDER=oss
# STORAGE_BUCKET=my-oss-bucket
# STORAGE_ACCESS_KEY_ID=your-oss-access-key
# STORAGE_ACCESS_KEY_SECRET=your-oss-secret-key
# STORAGE_REGION=cn-hangzhou
# Example 2: AWS S3
# STORAGE_PROVIDER=s3
# STORAGE_BUCKET=my-s3-bucket
# STORAGE_ACCESS_KEY_ID=your-aws-access-key
# STORAGE_ACCESS_KEY_SECRET=your-aws-secret-key
# STORAGE_REGION=us-east-1
# Example 3: MinIO (local development)
# STORAGE_PROVIDER=minio
# STORAGE_BUCKET=my-minio-bucket
# STORAGE_ACCESS_KEY_ID=minioadmin
# STORAGE_ACCESS_KEY_SECRET=minioadmin
# STORAGE_ENDPOINT=http://localhost:9000
# Example 4: Local filesystem
# STORAGE_PROVIDER=fs
# STORAGE_ROOT_PATH=./my-local-storage
# Example 5: HDFS
# STORAGE_PROVIDER=hdfs
# HDFS_NAME_NODE=localhost:9000
# HDFS_ROOT_PATH=/user/myuser
# Example 6: Tencent Cloud COS
# STORAGE_PROVIDER=cos
# STORAGE_BUCKET=my-cos-bucket
# STORAGE_ENDPOINT="http://cos.ap-nanjing.myqcloud.com"
# STORAGE_ACCESS_KEY_ID=your-cos-access-key
# STORAGE_ACCESS_KEY_SECRET=your-cos-secret-key
# STORAGE_REGION=ap-nanjing
# =============================================================================
# SECURITY NOTES
# =============================================================================
#
# 1. Never commit .env files containing real credentials to version control
# 2. Use environment-specific .env files (.env.development, .env.production)
# 3. Consider using a secrets manager for production environments
# 4. Rotate access keys regularly
# 5. Use IAM roles when possible (especially for AWS)
#
# =============================================================================