aboutsummaryrefslogtreecommitdiff
path: root/src/acme_challenge.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/acme_challenge.erl')
-rw-r--r--src/acme_challenge.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/acme_challenge.erl b/src/acme_challenge.erl
index 2bc6ccbb5..a65765f74 100644
--- a/src/acme_challenge.erl
+++ b/src/acme_challenge.erl
@@ -2,8 +2,8 @@
-export ([key_authorization/2,
solve_challenge/3,
-
- process/2
+ process/2,
+ acme_handler/0
]).
%% Challenge Types
%% ================
@@ -18,6 +18,10 @@
-include("ejabberd_http.hrl").
-include("ejabberd_acme.hrl").
+%% This is the default endpoint for the http challenge
+%% This function is called by the http_listener
+acme_handler() ->
+ {[<<".well-known">>],acme_challenge}.
%% TODO: Maybe validate request here??
process(LocalPath, _Request) ->