mirror of
https://github.com/neocities/neocities.git
synced 2025-05-28 13:51:07 +02:00
Better error handling for screenshot and thumbnail workers, hacky fix for lets encrypt cert issue that's temporary
This commit is contained in:
parent
4382eec54b
commit
2a3b8593df
4 changed files with 25 additions and 26 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue