Skip to content

Commit 90427ac

Browse files
committed
Adjust documented function signature for allow_domain.
To account for the addition of the `renewal` argument.
1 parent 2340c5e commit 90427ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ http {
138138
Additional configuration options can be set on the `auto_ssl` instance that is created:
139139

140140
### `allow_domain`
141-
*Default:* `function(domain, auto_ssl, ssl_options) return false end`
141+
*Default:* `function(domain, auto_ssl, ssl_options, renewal) return false end`
142142

143143
A function that determines whether the incoming domain should automatically issue a new SSL certificate.
144144

@@ -156,7 +156,7 @@ When using the Redis storage adapter, you can access the current Redis connectio
156156
*Example:*
157157

158158
```lua
159-
auto_ssl:set("allow_domain", function(domain, auto_ssl, ssl_options)
159+
auto_ssl:set("allow_domain", function(domain, auto_ssl, ssl_options, renewal)
160160
return ngx.re.match(domain, "^(example.com|example.net)$", "ijo")
161161
end)
162162
```

0 commit comments

Comments
 (0)