mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
refactor sign params
This commit is contained in:
1 parent
71319c1548
commit
99341e773f
6 files changed
+40
-20
No files matched your search
@@ -60,6 +60,17 @@ module Docuseal
|
||||
ENV['ACTIVE_STORAGE_PUBLIC'] == 'true'
|
||||
end
|
||||
|
||||
def default_pkcs
|
||||
@default_pkcs ||= GenerateCertificate.load_pkcs(Docuseal::CERTS)
|
||||
end
|
||||
|
||||
def trusted_certs
|
||||
@trusted_certs ||=
|
||||
ENV['TRUSTED_CERTS'].to_s.split("\n\n").map do |base64|
|
||||
OpenSSL::X509::Certificate.new(base64)
|
||||
end
|
||||
end
|
||||
|
||||
def default_url_options
|
||||
return DEFAULT_URL_OPTIONS if multitenant?
|
||||
|
||||
|
||||
Reference in new issue
Block a user