balupton
(Benjamin Lupton)
2024 年2 月 5 日 19:39
1
Has the force_https
setting been removed? Or is does it not show up if certain templates are used. Here are the templates I’m using:
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
I don’t think so. I see no changes around force_https
and I can still see the setting
`
I think there is some magic that hides it if you meet certain criteria:
pfaffman
(Jay Pfaffman)
2024 年2 月 5 日 20:57
4
Without finding the code, I think what happens is that if you have a certificate, DISCOURSE_FORCE_HTTPS
gets set to true, so it’s hidden from the UX.
4 个赞
I was looking for this the other day. Is it this bit:
6 个赞
pfaffman
(Jay Pfaffman)
2024 年2 月 5 日 21:18
6
That’s it! The other way to get stuff into config/discourse.conf
is setting an ENV variable, which results in something writing those out to that file just like that.
3 个赞
system
(system)
关闭
2024 年3 月 6 日 21:18
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.