You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.account_email| Yes | | The account identifier, can be reused in different plugin instance.
93
-
config.api_uri | | `"https://acme-v02.api.letsencrypt.org/directory"` | The ACMEv2 API endpoint to use, the url should only contain root path. User might use [Let's Encrypt staging environemnt](https://letsencrypt.org/docs/staging-environment/)(`https://acme-staging-v02.api.letsencrypt.org/directory`) during testing. Kong doesn't automatically delete staging certificates, if you use same domain to test and use in production, you will need to delete those certificates manaully after test.
94
-
config.cert_type | | `"rsa"` | The certificate type to create, choice of`"rsa"` for RSA certificate or `"ecc"` for EC certificate.
94
+
config.api_uri | | `"https://acme-v02.api.letsencrypt.org/directory"` | The ACMEv2 API endpoint to use. Users can specify the [Let's Encrypt staging environment](https://letsencrypt.org/docs/staging-environment/)(`https://acme-staging-v02.api.letsencrypt.org/directory`) for testing. Note that Kong doesn't automatically delete staging certificates: if you use same domain to test and use in production, you will need to delete those certificates manaully after test.
95
+
config.cert_type | | `"rsa"` | The certificate type to create. The possible values are`"rsa"` for RSA certificate or `"ecc"` for EC certificate.
95
96
config.domains | | `[]` | The list of domains to create certificate for. To match subdomains under `example.com`, use `*.example.com`. Regex pattern is not supported. Note this config is only used to match domains, not to specify the Common Name or Subject Alternative Name to create certifcates; each domain will have its own certificate.
96
97
config.renew_threshold_days| | `14` | Days before expire to renew the certificate.
97
-
config.storage | | `"shm"` | The backend storage type to use, choice of `"kong"`, `"shm"`, `"redis"`, `"consul"` or `"vault"`. In dbless mode, `"kong"` storage is unavailable. Note `"shm"` storage does not persist during Kong restarts and does not work for Kong running on different machines, consider using one of `"kong"`, `"redis"`, `"consul"` or `"vault"` in production.
98
+
config.storage | | `"shm"` | The backend storage type to use. The possible values are `"kong"`, `"shm"`, `"redis"`, `"consul"`, or `"vault"`. In DB-less mode, `"kong"` storage is unavailable. Note that `"shm"` storage does not persist during Kong restarts and does not work for Kong running on different machines, so consider using one of `"kong"`, `"redis"`, `"consul"`, or `"vault"` in production.
98
99
config.storage_config| | (See below)| Storage configs for each backend storage.
99
100
config.tos_accepted | | `false` | If you are using Let's Encrypt, you must set this to true to agree the [Terms of Service](https://letsencrypt.org/repository/).
100
101
@@ -136,6 +137,36 @@ To configure storage type other than `kong`, please refer to [lua-resty-acme](ht
136
137
137
138
Note `tls_verify` and `tls_server_name` parameters for Vault are only supported from plugin version 0.2.7.
138
139
140
+
Here's a sample declarative configuration with `redis` as storage:
141
+
142
+
```yaml
143
+
_format_version: "1.1"
144
+
# this section is not necessary if there's already a route that matches
145
+
# /.well-known/acme-challenge path with http protocol
0 commit comments