Some recipes weren't updated for the proxy validation yet. Needed to split the ejabberd cert in two, so it can do normal validation on `.org` and proxy validation on `.chat`.
19 lines
578 B
Ruby
19 lines
578 B
Ruby
domain = "irc-libera-chat.botka.kosmos.chat"
|
|
|
|
upstream_host = search(:node, "role:hubot").first["knife_zero"]["host"]
|
|
|
|
tls_cert_for domain do
|
|
auth "gandi_dns"
|
|
acme_domain "letsencrypt.kosmos.org"
|
|
action :create
|
|
end
|
|
|
|
openresty_site domain do
|
|
template 'nginx_conf_hubot.erb'
|
|
variables express_port: node['botka_irc-libera-chat']['http_port'],
|
|
server_name: domain,
|
|
ssl_cert: "/etc/letsencrypt/live/#{domain}/fullchain.pem",
|
|
ssl_key: "/etc/letsencrypt/live/#{domain}/privkey.pem",
|
|
upstream_host: upstream_host
|
|
end
|