mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
worker name to LetsEncryptWorker
This commit is contained in:
parent
9ef69854ca
commit
3b193ed58e
2 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ post '/settings/:username/custom_domain' do
|
||||||
|
|
||||||
if @site.valid?
|
if @site.valid?
|
||||||
@site.save_changes
|
@site.save_changes
|
||||||
RequestSSLAuthWorker.perform_async @site.id
|
LetsEncryptWorker.perform_async @site.id
|
||||||
flash[:success] = 'The domain has been successfully updated.'
|
flash[:success] = 'The domain has been successfully updated.'
|
||||||
redirect "/settings/#{@site.username}#custom_domain"
|
redirect "/settings/#{@site.username}#custom_domain"
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
class RequestSSLAuthWorker
|
class LetsEncryptWorker
|
||||||
class NotAuthorizedYetError < StandardError; end
|
class NotAuthorizedYetError < StandardError; end
|
||||||
class VerificationTimeoutError < StandardError; end
|
class VerificationTimeoutError < StandardError; end
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
sidekiq_options queue: :request_ssl_auth_worker, retry: 100, backtrace: true
|
sidekiq_options queue: :lets_encrypt_worker, retry: 100, backtrace: true
|
||||||
|
|
||||||
sidekiq_retry_in do |count|
|
sidekiq_retry_in do |count|
|
||||||
180
|
180
|
||||||
|
|
Loading…
Add table
Reference in a new issue