From f73919c79393aadd44f96841c0548d3b2d787479 Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Thu, 2 Sep 2021 07:03:19 +0000 Subject: [PATCH] allow using HTTP for the instance helpful for tor --- config/initializers/1_hosts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/1_hosts.rb b/config/initializers/1_hosts.rb index 6ff0845c4..a38625ada 100644 --- a/config/initializers/1_hosts.rb +++ b/config/initializers/1_hosts.rb @@ -7,7 +7,7 @@ web_host = ENV.fetch('WEB_DOMAIN') { host } alternate_domains = ENV.fetch('ALTERNATE_DOMAINS') { '' }.split(/\s*,\s*/) Rails.application.configure do - https = Rails.env.production? || ENV['LOCAL_HTTPS'] == 'true' + https = ENV['LOCAL_HTTPS'] != 'false' config.x.local_domain = host config.x.web_domain = web_host