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:
Sam 2024-03-27 10:48:04 +11:00 committed by GitHub
parent e3a0faefc5
commit e765e84941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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."