allow using HTTP for the instance

helpful for tor
This commit is contained in:
Kay Faraday 2021-09-02 07:03:19 +00:00
parent b1ebe7f686
commit f73919c793
1 changed files with 1 additions and 1 deletions

View File

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