你好,
我是一名刚迁移自 phpBB 的新 Discourse 用户,非常喜欢它,不过修改起来稍微有点棘手。我有几个问题希望能得到帮助:
我的 Discourse 实例运行在 DigitalOcean 的 Droplet 上,可惜当初没有考虑到将其部署在子域名(例如 talk.foo.com)上,目前它位于根域名 foo.com。请问是否有人知道能否将其迁移到子域名,而不是放在根目录下?
假设上述操作可行,我是否仍能在同一台 Droplet 上托管 Discourse 之外的页面?例如一个更传统的首页,并附带指向 Discourse 的链接?我猜应该可以……我只需要在 Droplet 上安装 LAMP 环境吗?
非常感谢!
Yes, it is possible, The amount of work depends upon how much active content you have. This migration may include some downtime as well.
I don’t know exactly about your setup but this guide can be a good reference for what you want:
This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name.
This guide is for self-hosted Discourse instances that were installed using our installation guide on GitHub . If you are hosted by Discourse , please see Configure your domain name for hosted Discourse for specific …
You can do that, but it requires additional set of configuration to your droplet.
Here is a Guide for that:
@pfaffman edited this heavily 2022.02.24. Blame me if it’s broken.
If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container.
NOTE: This is for advanced admins
This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working.
You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will …
That can be done but I’d recommend a LEMP stack instead (it makes things much easier)
5 个赞