storage.py 481 B

123456789101112131415161718192021
  1. from pydantic.v1 import BaseSettings
  2. class Settings(BaseSettings):
  3. """file service module"""
  4. FILE_SERVICE_MODULE = "app.services.file.impl.oss_file.OSSFileService"
  5. """aws s3 storage for oss file service"""
  6. S3_ENDPOINT: str = "http://minio:9000"
  7. S3_BUCKET_NAME: str = "open_assistant"
  8. S3_ACCESS_KEY: str = "ak-xxxx"
  9. S3_SECRET_KEY: str = "sk-xxxx"
  10. S3_REGION: str = "us-east-1"
  11. class Config:
  12. env_file = ".env"
  13. settings = Settings()