diff options
author | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-11-14 15:12:33 +0300 |
---|---|---|
committer | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-11-14 15:12:33 +0300 |
commit | ce99db05954a3170c4c5a5a45b18ea391fd86987 (patch) | |
tree | e24ee3e6fdfea15bad400a45ae84e2125a94657c /include | |
parent | 78f494dd2eba0970b14247f1027f09b6a82efaf0 (diff) |
Explain what is needed for the acme configuration and other small changes
1. Add a request handler in ejabberd_http and explain how to configure the http listener so that the challenges can be solved.
2. Make acme configuration optional by providing defaults in ejabberd_acme.
3. Save the CA that the account has been created in so that it creates a new account when connecting to a new CA.
4. Small spec change in acme configuration.
Diffstat (limited to 'include')
-rw-r--r-- | include/ejabberd_acme.hrl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ejabberd_acme.hrl b/include/ejabberd_acme.hrl index e0725af70..f48a6d8b9 100644 --- a/include/ejabberd_acme.hrl +++ b/include/ejabberd_acme.hrl @@ -7,8 +7,9 @@ }). -record(data_acc, { - id :: list(), - key :: jose_jwk:key() + id :: list(), + ca_url :: url(), + key :: jose_jwk:key() }). -type data_acc() :: #data_acc{}. @@ -23,6 +24,9 @@ %% Types %% +%% Acme configuration +-type acme_config() :: [{ca_url, url()} | {contact, bitstring()}]. + %% The main data type that ejabberd_acme keeps -type acme_data() :: proplist(). |