Configuring custom private repo of discourse through docker

Hello Discourse devs,

We are trying to deploy discourse for our forum through the official docker installation script. We want to keep a private git repo of discourse code. I am not able to figure out a way in the docker script to point to the private repo. I have changed the git clone url in ./image/base/Dockerfile (line 136), and also in the standalone.yml file. Still instead of picking the private repo, it’s picking the github public repo of discourse. Can you please tell me right approach of doing this?

1 个赞

See, Install a theme from a private git repository

Edit:

Oh. That’s such a crazy idea that I didn’t understand the question.

Like Matt said, the right approach is to develop a plugin. If you want it in a private repo, then you can follow my directions above.

1 个赞

Don’t modify Discourse core, make your changes via a plugin or theme instead.

2 个赞

@pfaffman, @mpalmer We are not going to modify the core of discourse at all. We just want to keep it a fixed stable version which can be pulled by docker. This way, we can decide the frequency of pulling the new updates. This can help us avoid breaking of any plugin in production due to changes in discourse.

Well, You can move to the stable branch of discourse or pin a particular version in your yml file for that purpose instead of making a private repo.

4 个赞

有什么办法可以做到这一点吗?

我的用例是我正在使用 discourse oauth basic 插件,并且我不希望用户能够更改他们的用户名。似乎唯一删除此功能的方法是更改 discourse 的核心?

如果您想减少 Discourse 本身的更改,请固定一个提交或使用 stable

通过分叉修改核心是完全不受支持的。如果您打算更改头像的行为方式,请考虑开发一个插件。

插件可以删除更改用户名的总访问权限吗?我不确定是否可以通过插件删除用户名路由上的访问权限。

您是否在使用外部 SSO?

有一个站点设置决定了用户更改用户名的时长。

我正在使用 Roblox 的 Beta 版 OAuth。因此,实际上我不想让用户能够更改他们的用户名,而是直接使用 Roblox 的用户名。

所以,实际上我希望他们的用户名(Username)变成他们的 Roblox 用户名,他们的名字(Name)变成他们的 Roblox 昵称(这两种都可以在 Roblox 平台上更改),以及他们的头像(Avatar),这些都可以更改。

所有这些都应该由最终用户设置为不可编辑,并自动更新(至少在登录时)。


目前我使用的是 OAuth 2 Basic 插件。您建议我使用其他东西来实现我想要的功能吗?基本上是作为 SSO(单点登录)?

1 个赞

这是否是将“用户名更改周期”设置为 0 的情况?

1 个赞

我通过以下方式禁用了它:

即使我没有使用 Discourse 提供的 SSO 功能,因为我认为我无法使用 Roblox?Roblox 不提供用户的电子邮件。

我想知道,在 Roblox 不提供电子邮件的情况下,我是否可以做到这一点,同时又不让用户更改他们的姓名、用户名、头像?因为我知道当我通过 OAuth 登录时,它会填写用户名、姓名和头像,但我不希望他们在注册时能够更改用户名和姓名。但至少让他们提供电子邮件。