Add S3 configuration and presigned URL logic for file upload and download

This commit is contained in:
2025-10-24 22:32:36 +08:00
parent 289812aac3
commit ec80aa92fa
8 changed files with 225 additions and 11 deletions

View File

@@ -1,3 +1,14 @@
Name: Blog
Host: 0.0.0.0
Port: 8888
Database:
DSN: "${DATABASE_DSN}" # postgres: host=localhost port=5432 user=postgres password=your_password dbname=steam_union sslmode=disable
S3:
Region: us-east-1
Bucket: your-bucket-name
AccessKeyID: your-access-key-id
SecretAccessKey: your-secret-access-key
Endpoint: # Optional: for custom S3-compatible endpoints (e.g., MinIO)
PresignedURLExpiration: 3600 # Expiration time in seconds (default 1 hour)