balupton
(Benjamin Lupton)
1
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 有任何变化,而且我仍然可以看到该设置 
`
pfaffman
(Jay Pfaffman)
4
在不查找代码的情况下,我认为发生的情况是,如果您拥有证书,DISCOURSE_FORCE_HTTPS 将被设置为 true,因此它在用户界面中是隐藏的。
4 个赞
pfaffman
(Jay Pfaffman)
6
就是这样!将内容写入 config/discourse.conf 的另一种方法是设置一个环境变量,这会导致某些内容像这样写入该文件。
3 个赞
system
(system)
关闭
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.