mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 05:14:59 +00:00
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
|
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
|
||||||
STDERR.puts "WARNING: force_https is enabled in dev"
|
STDERR.puts "WARNING: force_https is enabled in dev"
|
||||||
STDERR.puts "It is very unlikely you are running HTTPS in dev."
|
STDERR.puts "It is very unlikely you are running HTTPS in dev."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user