DEV: allow developers to use HTTPS if they wish (#26384)
Warning is getting tiring on local and I have https://l.discourse working just fine (tm)
This commit is contained in:
parent
e3a0faefc5
commit
e765e84941
|
@ -16,7 +16,7 @@ Rails.application.config.session_store(
|
|||
)
|
||||
|
||||
Rails.application.config.to_prepare do
|
||||
if Rails.env.development? && SiteSetting.force_https
|
||||
if Rails.env.development? && SiteSetting.force_https && !ENV["DISCOURSE_DEV_ALLOW_HTTPS"]
|
||||
STDERR.puts
|
||||
STDERR.puts "WARNING: force_https is enabled in dev"
|
||||
STDERR.puts "It is very unlikely you are running HTTPS in dev."
|
||||
|
|
Loading…
Reference in New Issue