lego/providers/dns/httpreq
Fernandez Ludovic bba525fbce doc: fix readme.
2018-11-08 23:39:19 +01:00
..
httpreq.go feat: add provider httpreq. 2018-11-08 19:22:52 +01:00
httpreq_test.go feat: add provider httpreq. 2018-11-08 19:22:52 +01:00
readme.md doc: fix readme. 2018-11-08 23:39:19 +01:00

HTTP request

The server must provide:

  • POST /present
  • POST /cleanup

The URL of the server must be define by HTTPREQ_ENDPOINT.

Mode

There are 2 modes (HTTPREQ_MODE):

  • default mode:
{
  "fqdn": "_acme-challenge.domain.",
  "value": "LHDhK3oGRvkiefQnx7OOczTY5Tic_xZ6HcMOc_gmtoM"
}
  • RAW
{
  "domain": "domain",
  "token": "token",
  "keyAuth": "key"
}

Authentication

Basic authentication (optional) can be set with some environment variables:

  • HTTPREQ_USERNAME and HTTPREQ_PASSWORD
  • both values must be set, otherwise basic authentication is not defined.