mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Run second lets encrypt update later to try to fix missing www CNAME issues
This commit is contained in:
parent
e89f5d7092
commit
693c07914e
1 changed files with 2 additions and 1 deletions
|
@ -138,7 +138,6 @@ post '/settings/:username/custom_domain' do
|
|||
if params[:domain] =~ /^www\..+$/i
|
||||
flash[:error] = 'Cannot begin with www - please only enter the domain name.'
|
||||
redirect "/settings/#{@site.username}/#custom_domain"
|
||||
|
||||
end
|
||||
|
||||
begin
|
||||
|
@ -160,6 +159,8 @@ post '/settings/:username/custom_domain' do
|
|||
|
||||
if @site.domain != original_domain
|
||||
LetsEncryptWorker.perform_async @site.id
|
||||
# Sometimes the www record isn't ready for some reason, so try a delay to fix that.
|
||||
LetsEncryptWorker.perform_in 40.minutes, @site.id
|
||||
end
|
||||
|
||||
flash[:success] = 'The domain has been successfully updated! Make sure your configuration with the domain registrar is correct. It could take a while for the changes to take effect (15-40 minutes), please be patient.'
|
||||
|
|
Loading…
Add table
Reference in a new issue