Welcome to the OSS (Object Storage Service) configuration documentation. This guide covers essential settings to optimize your storage experience.

Key Configuration Options

Here are the most important configuration parameters for OSS:

1. Storage Class

Choose between standard, low-frequency access, or archive storage based on your data access frequency.
🧠 Tip: Use Standard for frequently accessed files, Archive for long-term retention.

2. Access Control

Manage permissions with RAM roles or bucket policies.
🔐 Recommended: Enable防盗链 (Referer Whitelist) for security.

3. Lifecycle Management

Automate data transitions or deletions:

  • Transition: Move objects between storage classes
  • Expiration: Delete objects after a set period
    Example: Set Lifecycle rules for cost optimization.

4. Cross-Origin Requests (CORS)

Configure CORS policies to allow secure frontend interactions:

{
  "allowedOrigins": ["https://example.com"],
  "allowedMethods": ["GET", "POST"]
}

🌐 Always test CORS settings with your frontend application.

Best Practices 📝

  • 🔍 Monitor Usage: Use the OSS Usage Monitoring tool
  • 🔄 Enable Versioning: Protect against accidental deletions
  • 🛡️ Enable Encryption: Use Server-Side Encryption for sensitive data

Related Resources

For deeper insights, check our OSS Configuration Guide or API Reference.

OSS Configuration
Bucket Settings