nginx/njs-acme

Allow for a custom hostname validator

开放

#25 创建于 2023年7月18日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (16 个派生)auto 404
enhancementgood first issuehelp wanted

仓库指标

星标
 (93 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

From @ivanitskiy:

here is an idea for you. let's have a callback on the client so users/developers can build their own validators (say they want to have allow list). from: https://github.com/auto-ssl/lua-resty-auto-ssl

auto_ssl:set("allow_domain", function(domain, auto_ssl, ssl_options, renewal)
  return ngx.re.match(domain, "^(example.com|example.net)$", "ijo")
end)

we can provide a default callback but allow people to make their own validations.

贡献者指南