# Self-hosting

**URL:** https://meta.discourse.org/c/support/self-hosting/31.md?page=123

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 124

---

## [如何禁用创建管理员时的邮件确认](https://meta.discourse.org/t/how-to-disable-mail-confirmation-to-create-admins/110395)

<div class="topic-metadata">

**Author:** [@jpchen](https://meta.discourse.org/u/jpchen)\
**回覆:** 1\
**Last updated:** [2019年二月28日 23:22 UTC](https://meta.discourse.org/t/how-to-disable-mail-confirmation-to-create-admins/110395 "2019-02-28T23:22:48Z")

</div>

我们的邮件系统出现故障，且由于由第三方维护，我们无法直接访问数据库。我需要为用户授予管理员权限，但这需要邮件确认，而我无法完成。我已尝试多次……

---

## [Access-Control-Allow-Origin is there, but isn't working!](https://meta.discourse.org/t/access-control-allow-origin-is-there-but-isnt-working/49164)

<div class="topic-metadata">

**Author:** [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)\
**回覆:** 2\
**Last updated:** [2016年八月24日 22:20 UTC](https://meta.discourse.org/t/access-control-allow-origin-is-there-but-isnt-working/49164 "2016-08-24T22:20:58Z")

</div>

Hey, I’ve submited my post too soon. Here’s the full post Hey guys! I’m working on a discourse project where I have a discourse install alongside a wordpress install. So I’ve got “forum.latranchee.com” and “www.latra…

---

## [CloudFront 未缓存静态文件](https://meta.discourse.org/t/cloudfront-not-caching-static-files/109818)

<div class="topic-metadata">

**Author:** [@soke](https://meta.discourse.org/u/soke)\
**回覆:** 7\
**Last updated:** [2019年二月25日 17:40 UTC](https://meta.discourse.org/t/cloudfront-not-caching-static-files/109818 "2019-02-25T17:40:04Z")

</div>

您好。 我已在 AWS 上部署了 Discourse v2.3.0.beta2 版本。 此附件展示了我的部署方式。我在自动扩展组的每个实例上均使用官方 Docker 镜像进行安装。 我尚未完成……

---

## [在 CentOS 6.8 上安装 Discourse](https://meta.discourse.org/t/install-discourse-on-centos6-8/109993)

<div class="topic-metadata">

**Author:** [@kranthi](https://meta.discourse.org/u/kranthi)\
**回覆:** 1\
**Last updated:** [2019年二月25日 12:03 UTC](https://meta.discourse.org/t/install-discourse-on-centos6-8/109993 "2019-02-25T12:03:01Z")

</div>

我们可以在 CentOS 6.8 上安装 Docker 来部署 Discourse 吗？

---

## [在电子邮件设置中如何设置域名？](https://meta.discourse.org/t/what-sets-the-domain-in-the-email-settings/109784)

<div class="topic-metadata">

**Author:** [@MicahZoltu](https://meta.discourse.org/u/MicahZoltu)\
**回覆:** 14\
**Last updated:** [2019年二月24日 12:32 UTC](https://meta.discourse.org/t/what-sets-the-domain-in-the-email-settings/109784 "2019-02-24T12:32:03Z")

</div>

我最近安装了 Discourse，一切似乎都运行正常。但是，当我查看“管理 \> 电子邮件 \> 设置 \> 域名”时，它显示的是“example.com”。我在设置或 Mailgun 中找不到任何引用“exampl…

---

## [Discourse 安装协助](https://meta.discourse.org/t/assistance-with-discourse-setup/109857)

<div class="topic-metadata">

**Author:** [@Jansither](https://meta.discourse.org/u/Jansither)\
**回覆:** 15\
**Last updated:** [2019年二月23日 18:58 UTC](https://meta.discourse.org/t/assistance-with-discourse-setup/109857 "2019-02-23T18:58:39Z")

</div>

嘿，各位！ 我之前用 Digital Ocean 和 PHPBB 软件创建过不少网站，按理说这应该超级简单，所以我觉得自己有点笨，但我确实遇到了问题。 我已经按照这里的步骤操作了两次（在删除…

---

## [使用 Sendgrid 托管账户？](https://meta.discourse.org/t/use-sendgrid-for-hosted-account/109692)

<div class="topic-metadata">

**Author:** [@Sean\_Strycker](https://meta.discourse.org/u/Sean_Strycker)\
**回覆:** 3\
**Last updated:** [2019年二月22日 01:36 UTC](https://meta.discourse.org/t/use-sendgrid-for-hosted-account/109692 "2019-02-22T01:36:26Z")

</div>

我们是否可以在 Discourse 托管账户上使用我们的 SendGrid 账户？

---

## [我的SSL证书问题](https://meta.discourse.org/t/problem-with-my-ssl-certificate/67299)

<div class="topic-metadata">

**Author:** [@craisp](https://meta.discourse.org/u/craisp)\
**回覆:** 15\
**Last updated:** [2019年二月21日 01:31 UTC](https://meta.discourse.org/t/problem-with-my-ssl-certificate/67299 "2019-02-21T01:31:07Z")

</div>

你好 我在SSL设置方面遇到问题。 我在Linode上运行一个discourse应用，DNS记录正常。 当我安装应用时，我按照这个操作指南： 我的SSL证书昨天过期了，我不知道…

---

## [Discourse 是否会推出 Plesk 风格的安装方式？](https://meta.discourse.org/t/will-discourse-get-plesk-style-install/109393)

<div class="topic-metadata">

**Author:** [@texxxo](https://meta.discourse.org/u/texxxo)\
**回覆:** 11\
**Last updated:** [2019年二月19日 21:06 UTC](https://meta.discourse.org/t/will-discourse-get-plesk-style-install/109393 "2019-02-19T21:06:56Z")

</div>

您好，我经常使用 Discourse，因为我注册的许多论坛都使用 Discourse（感谢上帝），只有少数使用 phpBB，我不喜欢访问这些网站，但我必须去！ 我的问题是现在因为…

---

## [Subfolder with SSL and nginx reverse proxy](https://meta.discourse.org/t/subfolder-with-ssl-and-nginx-reverse-proxy/69496)

<div class="topic-metadata">

**Author:** [@Ironclad14](https://meta.discourse.org/u/Ironclad14)\
**回覆:** 14\
**Last updated:** [2019年二月19日 17:29 UTC](https://meta.discourse.org/t/subfolder-with-ssl-and-nginx-reverse-proxy/69496 "2019-02-19T17:29:43Z")

</div>

Hey guys, I looked around but I couldn’t see a guide on how to host Discourse on domain.com/forum with SSL, using nginx as a reverse proxy. Currently, I’m running the forum on a subdomain - forum.domain.com and What I h…

---

## [在 Amazon Lightsail 上安装 Discourse 是否可行？](https://meta.discourse.org/t/discourse-install-on-amazon-lightsail-possible/109367)

<div class="topic-metadata">

**Author:** [@jidetheblogger](https://meta.discourse.org/u/jidetheblogger)\
**回覆:** 2\
**Last updated:** [2019年二月17日 21:34 UTC](https://meta.discourse.org/t/discourse-install-on-amazon-lightsail-possible/109367 "2019-02-17T21:34:53Z")

</div>

您好，\\n是否有人已成功在 Amazon Lightsail 上安装 Discourse 并正常运行？

---

## [Safe to delete postgres\_data\_old?](https://meta.discourse.org/t/safe-to-delete-postgres-data-old/47892)

<div class="topic-metadata">

**Author:** [@kcoop](https://meta.discourse.org/u/kcoop)\
**回覆:** 1\
**Last updated:** [2016年七月27日 22:34 UTC](https://meta.discourse.org/t/safe-to-delete-postgres-data-old/47892 "2016-07-27T22:34:55Z")

</div>

Running low on disk space, discovered 5.5Gb postgres\_data\_old in /var/discourse/shared/standalone. File dates at least a few weeks old. See it referenced in a few places here, guessing it’s part of a backup that’s no lo…

---

## [Installing Docker (CentOS 7 + OpenVZ)](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765)

<div class="topic-metadata">

**Author:** [@rtainc](https://meta.discourse.org/u/rtainc)\
**回覆:** 11\
**Last updated:** [2019年二月16日 13:17 UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765 "2019-02-16T13:17:49Z")

</div>

Hi, I’ve been trying to install Discourse for a couple of hours now, and I decided to turn to the forums to see if anyone has had a similar problem and knows how to help. I’ve installed Docker on my VPS with yum install…

---

## [SMTP setting problem with Office365](https://meta.discourse.org/t/smtp-setting-problem-with-office365/61630)

<div class="topic-metadata">

**Author:** [@jianwei.lu](https://meta.discourse.org/u/jianwei.lu)\
**回覆:** 4\
**Last updated:** [2019年二月16日 11:52 UTC](https://meta.discourse.org/t/smtp-setting-problem-with-office365/61630 "2019-02-16T11:52:41Z")

</div>

I encounter a problem when I try to set the Email SMTP using Office365 online email server. the SMTP setting of Office365 is: Server name: smtp.partner.outlook.cn Port: 587 Encryption method: STARTTLS The discourse’s …

---

## [Email not working with SparkPost](https://meta.discourse.org/t/email-not-working-with-sparkpost/42502)

<div class="topic-metadata">

**Author:** [@ichy-wayland](https://meta.discourse.org/u/ichy-wayland)\
**回覆:** 3\
**Last updated:** [2019年二月15日 18:06 UTC](https://meta.discourse.org/t/email-not-working-with-sparkpost/42502 "2019-02-15T18:06:52Z")

</div>

Hey! Im trying to setup a little Discourse forum. Im using SparkPost for SMTP, and as far as i can see i’ve setuped it correctly. I can send emails from the SparkPost site with my API key & domain, but when i try to send…

---

## [Firefox 中的 HTTPS 警告](https://meta.discourse.org/t/https-warnings-in-firefox/105298)

<div class="topic-metadata">

**Author:** [@mazz](https://meta.discourse.org/u/mazz)\
**回覆:** 4\
**Last updated:** [2019年二月15日 15:23 UTC](https://meta.discourse.org/t/https-warnings-in-firefox/105298 "2019-02-15T15:23:29Z")

</div>

您好，我在成功通过 Let's Encrypt 安装 HTTPS 后，在 Firefox 控制台中收到了两条警告： 在安全页面上加载了混合（不安全）的显示内容“http://faithfulforum.com/images/default-apple-touch-icon.png”...

---

## [Restoring backup fails due to Postgres version mismatch](https://meta.discourse.org/t/restoring-backup-fails-due-to-postgres-version-mismatch/47536)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**回覆:** 5\
**Last updated:** [2019年二月14日 10:53 UTC](https://meta.discourse.org/t/restoring-backup-fails-due-to-postgres-version-mismatch/47536 "2019-02-14T10:53:32Z")

</div>

I have created backup of Discourse using web UI on Ubuntu with docker-installed Discourse. Now I want it to restore on my development machine Ubuntu (finally - no docker, no vagrant :slight\_smile: ) and I’m getting error…

---

## [备份恢复后看到“欢迎使用 nginx"](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108)

<div class="topic-metadata">

**Author:** [@PaulSolt](https://meta.discourse.org/u/PaulSolt)\
**回覆:** 10\
**Last updated:** [2019年二月14日 01:51 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108 "2019-02-14T01:51:42Z")

</div>

如何在还原时禁用 HTTPS？ 在还原之前，我能够访问我的新 Discourse 实例（http://159.65.164.214），但还原后我看到： 欢迎使用 nginx！ 如果您看到此页面，说明 nginx Web 服务器已…

---

## [备份正在重复且未遵守磁盘保留数量限制](https://meta.discourse.org/t/backups-are-duplicating-and-not-respecting-number-to-keep-on-disk/107427)

<div class="topic-metadata">

**Author:** [@clay](https://meta.discourse.org/u/clay)\
**回覆:** 67\
**Last updated:** [2019年二月14日 01:14 UTC](https://meta.discourse.org/t/backups-are-duplicating-and-not-respecting-number-to-keep-on-disk/107427 "2019-02-14T01:14:09Z")

</div>

@Wingtip 我们的 Discourse 实例最近在备份方面出现了异常。其中一些问题包括：本应每隔一天进行一次备份，但实际上每天进行了两次；此外，系统也未遵循设定的...

---

## [Ubuntu 16.04 LTS - upgrade or migrate?](https://meta.discourse.org/t/ubuntu-16-04-lts-upgrade-or-migrate/51751)

<div class="topic-metadata">

**Author:** [@Stephen](https://meta.discourse.org/u/Stephen)\
**回覆:** 12\
**Last updated:** [2019年二月13日 04:02 UTC](https://meta.discourse.org/t/ubuntu-16-04-lts-upgrade-or-migrate/51751 "2019-02-13T04:02:55Z")

</div>

I’ve finally found a moment to breathe between my various other projects, which means I’ve a few idle cycles to think about our Discourse environments and how, when or if we should approach the Ubuntu 16.04 LTS upgrade. …

---

## [同一服务器上的第二次对话实例](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820)

<div class="topic-metadata">

**Author:** [@carlokok](https://meta.discourse.org/u/carlokok)\
**回覆:** 4\
**Last updated:** [2019年二月12日 08:49 UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820 "2019-02-12T08:49:08Z")

</div>

我已经在论坛中查找过，但未能找到相关信息。如果我想在我的 Docker 安装中启动 Discourse 的第二个实例，是否只需将 app.yml 复制/粘贴为 app2.yml，然后修改主机名、暴露设置（…

---

## [我在自己的 Discourse 安装中成了嫌疑人](https://meta.discourse.org/t/i-am-a-suspect-on-my-own-discourse-installs/108823)

<div class="topic-metadata">

**Author:** [@Watercolor\_Games](https://meta.discourse.org/u/Watercolor_Games)\
**回覆:** 7\
**Last updated:** [2019年二月11日 14:35 UTC](https://meta.discourse.org/t/i-am-a-suspect-on-my-own-discourse-installs/108823 "2019-02-11T14:35:47Z")

</div>

嘿。我已经至少安装了 3 次 Discourse，并在我的管理界面中查看过。每次都会出现同样的问题：我会进入“用户 -\> 可疑用户”，然后看到自己的账号出现在那里。无论是开发实例还是其他情况，无论它是否...

---

## [如何在已有网站的 Apache 服务器上安装 Discourse](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499)

<div class="topic-metadata">

**Author:** [@Johnny1](https://meta.discourse.org/u/Johnny1)\
**回覆:** 10\
**Last updated:** [2019年二月7日 00:23 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499 "2019-02-07T00:23:27Z")

</div>

你好，我的服务器上有一个 WordPress 站点，我需要安装 Discourse。我按照这份指南操作，但它假设我已经有一个运行中的 Discourse 实例，而我并没有。我尝试过搜索，但一直遇到同样的问题…

---

## [SSO 至 Joomla 站点](https://meta.discourse.org/t/sso-to-joomla-site/107870)

<div class="topic-metadata">

**Author:** [@alehman](https://meta.discourse.org/u/alehman)\
**回覆:** 6\
**Last updated:** [2019年二月4日 17:48 UTC](https://meta.discourse.org/t/sso-to-joomla-site/107870 "2019-02-04T17:48:41Z")

</div>

有人尝试过将单点登录（SSO）集成到 Joomla 站点吗？我的俱乐部已有一个带有会员数据库的 Joomla 站点，我希望将 Discourse 用户认证到该站点。我在 Joomla 端实现 SSO 时遇到了困难…

---

## [How do I open the Rails console in Discourse Docker in production mode?](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970)

<div class="topic-metadata">

**Author:** [@spocksplanet](https://meta.discourse.org/u/spocksplanet)\
**回覆:** 5\
**Last updated:** [2019年一月30日 08:23 UTC](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970 "2019-01-30T08:23:45Z")

</div>

I have tried to use the following commands to get to the console, but I am encountering a lot of errors when I run the command. Here is the input: docker run -i -t local\_discourse/app:latest bash cd /var/www/discour…

---

## [Postfix 邮件发送失败](https://meta.discourse.org/t/postfix-mailing-fails/107963)

<div class="topic-metadata">

**Author:** [@SpaceboyRoss01](https://meta.discourse.org/u/SpaceboyRoss01)\
**回覆:** 17\
**Last updated:** [2019年二月2日 07:38 UTC](https://meta.discourse.org/t/postfix-mailing-fails/107963 "2019-02-02T07:38:51Z")

</div>

我花了过去两天时间试图让 Discourse 运行起来，但现在卡住了。系统日志显示： 1 月 30 日 22:17:30 SpaceboyRoss01 postfix/submission/smtpd\[31050\]: 来自未知 \[172.17.0.2\] 的连接 1 月 30 日 22:1…

---

## [有人在使用 EasyEngine 4 的 Discourse 子目录选项吗？](https://meta.discourse.org/t/is-there-anyone-who-are-using-easyengine-4-discourse-subfolder-option/108140)

<div class="topic-metadata">

**Author:** [@unicom](https://meta.discourse.org/u/unicom)\
**回覆:** 6\
**Last updated:** [2019年二月2日 21:44 UTC](https://meta.discourse.org/t/is-there-anyone-who-are-using-easyengine-4-discourse-subfolder-option/108140 "2019-02-02T21:44:20Z")

</div>

EasyEngine（ee）是一组 Linux Shell 脚本，可让您在 Ubuntu 服务器上轻松愉快地管理 WordPress 和 Nginx 站点。 我想安装 EasyEngine 并配置 Discourse，使其类似于 example.com/forum/。 现在 EE4 …

---

## [已安装的主题未在网站上显示](https://meta.discourse.org/t/installed-theme-not-showing-on-site/108097)

<div class="topic-metadata">

**Author:** [@dave\_odiakaose](https://meta.discourse.org/u/dave_odiakaose)\
**回覆:** 13\
**Last updated:** [2019年二月2日 18:53 UTC](https://meta.discourse.org/t/installed-theme-not-showing-on-site/108097 "2019-02-02T18:53:40Z")

</div>

我安装了三个主题（分类图标、页眉链接主题组件和用户顶部导航），但它们没有在我的网站上显示，只有页眉链接主题组件在预览中显示。请帮忙解决一下！

---

## [未找到模块 discourse-common/lib/icon-library](https://meta.discourse.org/t/could-not-find-module-discourse-common-lib-icon-library/107958)

<div class="topic-metadata">

**Author:** [@esepjav](https://meta.discourse.org/u/esepjav)\
**回覆:** 15\
**Last updated:** [2019年一月31日 20:22 UTC](https://meta.discourse.org/t/could-not-find-module-discourse-common-lib-icon-library/107958 "2019-01-31T20:22:47Z")

</div>

嗨， 是否知道如何解决以下错误？ 未捕获的错误：找不到模块 discourse-common/lib/icon-library，该模块由 discourse/plugins/discourse-solved/discourse/initializers/extend-for-solved-button 导入 \[v1.…

---

## [新 Discourse 安装导致 localhost 的图片 URL 失效](https://meta.discourse.org/t/new-discourse-install-has-broken-image-urls-to-localhost/107992)

<div class="topic-metadata">

**Author:** [@xxxhuizhang](https://meta.discourse.org/u/xxxhuizhang)\
**回覆:** 9\
**Last updated:** [2019年一月31日 06:37 UTC](https://meta.discourse.org/t/new-discourse-install-has-broken-image-urls-to-localhost/107992 "2019-01-31T06:37:35Z")

</div>

这是我的 nginx 配置文件

[上一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=122)

[下一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=124)
