Hi, I’m not a developer so I hired a company that has been creating my website. Now I want the team to add Discourse to my site. How do I calculate or estimate how many hours it will take the developers to install and integrate Discourse? Is there any way to tell? Many thanks, Torsten
Set up Discourse in the cloud in under 30 minutes with zero knowledge of Rails or Linux shell. We recommend DigitalOcean, but these steps will work on any Docker-compatible cloud provider or local server.
Don’t have 30 minutes to set this up? For a flat one-time fee of $99, the community can install Discourse in the cloud for you. Click here to purchase a self-supported community install.
https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md
Even for an absolute beginner, it should not take more than a hour to get it up and running.
My site is hosted in my Google Cloud account, I take it will be as easy to install as with DigitalOcean?
Yes. It will be easy to setup.
Assuming that the Google Cloud meets the requirement, then yes, the installation should be pretty much the same
What is the ‘requirement’?
Yes, it takes about 15-20 minutes to install on Google cloud.
We did it and were really impressed with Google’s infrastructure.
The official discourse install steps work seamlessly (the one that Vinoth has shared the link for).
It’s all pretty well explained in the install document linked above. It’s been edited for several years so that it answers questions like the ones you’re asking.
Digital Ocean 一直是个噩梦……他们的 Discourse Droplet 不断阻止 Cloudflare 的连接,但我通过基础的 Ubuntu 服务器和自行安装解决了这个问题。Digital Ocean 和 Cloudflare 并不兼容,这可能会带来巨大的麻烦。
Cloudflare 并非必要或推荐,它只会增加复杂性。先从简单开始。
你好 @LoganRTW
这种情况不应该发生。我有很多客户在 Digital Ocean 上运行 Discourse,并通过 Cloudflare 防火墙进行防护。这需要 Cloudflare 方面进行大量调整,以确保一切配置正确,同时 Discourse 也需要知道它运行在 Cloudflare 后面,以便信任其 IP 地址。
Discourse 无法在 Cloudflare 启用的情况下安装,这会立即引发问题。
像 Let’s Encrypt 这样的流程要求在设置期间服务器可直接访问。
我理解您想从一开始就启用它的倾向;如果您在其他地方也使用它,这样做确实合理。但在这种情况下,过早激活会极大地复杂化安装过程。
即使 Discourse 已安装,Cloudflare 的实用价值也有限。您可能能够分担部分静态资源流量,但同时也增加了应用与服务器之间的额外网络跳转,这会显著影响系统的响应速度。其所有性能优化功能已知会引发问题,因此如果您将来在 Discourse 上使用 Cloudflare,我建议为社区 URL 设置页面规则以“禁用性能优化”。Cloudflare 显然无法比 Discourse 自身更好地优化 JavaScript。
DigitalOcean 仅阻止某些出站 SMTP 端口,且通常仅针对新账户的 VPS。一般来说,他们不会在其 VPS 与外部世界之间设置任何网络策略。
这话是谁说的?
别提供 Let’s Encrypt 的邮箱,然后编辑 yml 文件以包含 Cloudflare 模板。之后只需一次重建,即可在启用 Cloudflare 且不启用 Let’s Encrypt 的情况下完成 Discourse 的安装。
为了以合理的方式使用,需要在 Cloudflare 上禁用 Rocket Loader 和对象缓存,但这并不意味着无法在启用 Cloudflare 的情况下安装 Discourse。
这很可能就是问题所在。你看,Cloudflare 不仅是我的代理,还是我的域名注册商……所以我得尝试禁用代理,看看能否使用 Let’s Encrypt 重新搭建。 目前唯一正常运行的网站,是在其他注册商注册后,在安装完成之后才转移到 Cloudflare 的。这似乎是个值得深入追查的线索。我先试试看效果如何。 谢谢!
禁用代理很简单。进入 Cloudflare 中的 DNS 标签页……点击那个橙色云朵图标……它会变成灰色,代理即被禁用。
好的,那我也试试这个。使用 Cloudflare 作为域名注册商确实有些奇怪。我之前尝试使用 Cloudflare 模板和 Let’s Encrypt……所以你的意思是不要使用 Let’s Encrypt 模板,还是只需将 LETSENCRYPT_ACCOUNT_EMAIL 留空?
如果您愿意使用 Cloudflare(作为代理/WAF),那么最佳选择是让他们处理 SSL 并禁用 Let’s Encrypt。
您需要通过 UFW 或类似工具阻止对您 VPS 的访问,仅允许 Cloudflare 进行通信。Cloudflare 还提供源站证书,以拒绝任何未出示该证书的请求。
我确实能用这种方式让它运行……不过,我是通过 forum.teksyndicate 来运行的,如果让论坛和托管在其他地方的 WordPress 站点协同工作,我的 WordPress 站点就会出问题,哈哈。我找不到能让它们都正常工作的 SSL 配置。
嗯……我或许能帮你解决这个问题。是 WordPress 上只有 SSL 出问题了?如果是的话,页面规则可以派上用场。