# 无法设置 S3 存储桶

**URL:** https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372
**Category:** Self-hosting
**Tags:** uploads, s3
**Created:** [2025年一月9日 16:38 UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372 "2025-01-09T16:38:01Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2025年一月9日 20:29 UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372/4 "2025-01-09T20:29:17Z")

</div>

> [@luigi7up](#):
>
> 您似乎无意中粘贴了两次相同的指南。

抱歉。其中一个应该是 [https://meta.discourse.org/t/set-up-file-and-image-uploads-to-s3/7229。](https://meta.discourse.org/t/set-up-file-and-image-uploads-to-s3/7229%E3%80%82)

> [@luigi7up](#):
>
> 您能否澄清您指的是哪个 YAML 文件？

请参阅有关如何配置 S3 的链接主题，但是的，`app.yml` 是您想要更改的文件（因为您没有提到 `web_only.yml`）

> [@luigi7up](#):
>
> 如果我直接通过 YAML 文件配置我的 S3/CloudFront 集成，这些设置是否会覆盖 Discourse 管理部分中的设置？

是的。在 YML 文件中输入它们会将它们从用户界面中隐藏。

---

_[View the full topic](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372)._
