Better error handling for screenshot and thumbnail workers, hacky fix for lets encrypt cert issue that's temporary

This commit is contained in:
Kyle Drake 2023-07-19 21:16:05 +00:00
parent 4382eec54b
commit 2a3b8593df
4 changed files with 25 additions and 26 deletions

View file

@ -64,7 +64,11 @@ class LetsEncryptWorker
puts "testing #{challenge_url}"
begin
res = HTTP.timeout(connect: 10, write: 10, read: 10).follow.get(challenge_url)
# Some dumb letsencrypt related cert expiration issue hotfix
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
res = HTTP.timeout(connect: 10, write: 10, read: 10).follow.get(challenge_url, ssl_context: ctx)
rescue => e
puts e.inspect
puts "error with #{challenge_url}"