Fix STORAGE_DOMAIN conflict and disable CDN by default for OSS#21
Fix STORAGE_DOMAIN conflict and disable CDN by default for OSS#21wzy403 wants to merge 2 commits intomoeflow-com:mainfrom
Conversation
📝 WalkthroughWalkthroughConfiguration updates affecting storage domain initialization and CDN-based URL authentication. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
Pre-merge checks✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.env-backend.sample (1)
36-36: Consider a more format-representative placeholder.The placeholder
change_meis generic and doesn't reflect that a full URL is expected (as described in the comments above). While the comments do provide clear format guidance, users might benefit from a placeholder that better hints at the expected format, such as:
- For a neutral example:
https://your-domain.com/storage/orhttps://example.com- Or keeping it generic but adding a comment reminder at the end of the line
However, since the comments are clear and this is a sample file, the current approach is workable.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.env-backend.sampledocker-compose.yml
💤 Files with no reviewable changes (1)
- docker-compose.yml
🔇 Additional comments (2)
.env-backend.sample (2)
57-57: LGTM! Disabling CDN by default is appropriate.Setting
OSS_VIA_CDN=Falseas the default is the correct choice since CDN with URL authentication requires additional configuration (CDN keys). This makes CDN opt-in, preventing potential errors for users who haven't configured CDN.
36-36: STORAGE_DOMAIN configuration is properly implemented.The migration from hardcoded docker-compose to .env-backend has been correctly completed:
STORAGE_DOMAINwas properly removed from all docker-compose files- The
moeflow-backendservice correctly loads from.env-backendviaenv_file- The placeholder value in
.env-backend.sampleallows operators to configure storage domain per deployment
Change Summary
1. Resolve STORAGE_DOMAIN configuration conflict
STORAGE_DOMAINwas hardcoded indocker-compose.ymlashttps://${DOMAIN}/storage/which is for local storage type.STORAGE_DOMAINvia the.env-backendconfiguration.STORAGE_DOMAINis no longer hardcoded and can be configured correctly based onSTORAGE_TYPE.2. Disable CDN by default for OSS mode
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.