没有 `force_https` 设置吗?

force_https 设置已被移除?或者,如果使用了某些模板,它是否不会显示。我正在使用的模板如下:

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/cloudflare.template.yml"
  - "templates/web.ssl.template.yml"  # https
  - "templates/web.letsencrypt.ssl.template.yml"  # https
  # - "templates/web.ratelimited.template.yml" # not needed

我不这么认为。我没有看到 force_https 有任何变化,而且我仍然可以看到该设置 :thinking:


`

我认为有一些魔法会在满足特定条件时隐藏它:

在不查找代码的情况下,我认为发生的情况是,如果您拥有证书,DISCOURSE_FORCE_HTTPS 将被设置为 true,因此它在用户界面中是隐藏的。

4 个赞

我前几天一直在找这个。是这个部分吗:

6 个赞

就是这样!将内容写入 config/discourse.conf 的另一种方法是设置一个环境变量,这会导致某些内容像这样写入该文件。

3 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.