force ssl only if host passed

This commit is contained in:
DocuSeal
2023-10-29 19:10:41 +02:00
parent 607fc8d338
commit 50d3404f3b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module Docuseal
DEFAULT_URL_OPTIONS = {
host: HOST,
protocol: ENV['FORCE_SSL'] == 'true' ? 'https' : 'http'
protocol: ENV['FORCE_SSL'].present? ? 'https' : 'http'
}.freeze
module_function