mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 09:11:28 +02:00
allow adding of ssl certs for domain
This commit is contained in:
parent
92fcee0aea
commit
af605f352e
7 changed files with 307 additions and 14 deletions
|
@ -798,6 +798,10 @@ class Site < Sequel::Model
|
|||
"#{THUMBNAILS_URL_ROOT}/#{values[:username]}/#{path}.#{resolution}.#{ext}"
|
||||
end
|
||||
|
||||
def ssl_installed?
|
||||
ssl_key && ssl_cert && ssl_cert_intermediate
|
||||
end
|
||||
|
||||
def to_rss
|
||||
RSS::Maker.make("atom") do |maker|
|
||||
maker.channel.title = title
|
||||
|
@ -808,8 +812,8 @@ class Site < Sequel::Model
|
|||
latest_events.each do |event|
|
||||
if event.site_change_id
|
||||
maker.items.new_item do |item|
|
||||
item.link = "http://#{username}.neocities.org"
|
||||
item.title = "#{username}.neocities.org has been updated"
|
||||
item.link = "https://#{host}"
|
||||
item.title = "#{title} has been updated"
|
||||
item.updated = event.site_change.created_at
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue