-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
27 lines (22 loc) · 1.12 KB
/
Copy pathenv.example
File metadata and controls
27 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Backend Server Configuration
SERVER_HOST=localhost
SERVER_PORT=8080
# MongoDB Configuration
# For local development (connecting to localhost)
MONGO_URI=mongodb://admin:password@localhost:27017/blog?authSource=admin
MONGO_DATABASE=blog
# For Docker environment (connecting via service name)
# MONGO_URI=mongodb://admin:password@mongodb:27017/blog?authSource=admin
# MinIO/S3 Configuration
# For local development (connecting to localhost)
# Note: gocloud.dev/blob S3 driver requires AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
# The bucket URL format for MinIO: s3://blog-storage?endpoint=http://localhost:9000®ion=us-east-1&disableSSL=true
MEDIA_BUCKET_URL=s3://blog-storage?endpoint=http://localhost:9000®ion=us-east-1&disableSSL=true
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin
# For Docker environment (connecting via service name)
# MEDIA_BUCKET_URL=s3://blog-storage?endpoint=http://minio:9000®ion=us-east-1&disableSSL=true
# AWS_ACCESS_KEY_ID=minioadmin
# AWS_SECRET_ACCESS_KEY=minioadmin
# Alternative: Using file-based storage (for development without MinIO)
# MEDIA_BUCKET_URL=file://./data/storage