httpreq.toml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Name = "HTTP request"
  2. Description = ''''''
  3. URL = "/lego/dns/httpreq/"
  4. Code = "httpreq"
  5. Since = "v2.0.0"
  6. Example = '''
  7. HTTPREQ_ENDPOINT=http://my.server.com:9090 \
  8. lego --email you@example.com --dns httpreq -d '*.example.com' -d example.com run
  9. '''
  10. Additional = '''
  11. ## Description
  12. The server must provide:
  13. - `POST` `/present`
  14. - `POST` `/cleanup`
  15. The URL of the server must be defined by `HTTPREQ_ENDPOINT`.
  16. ### Mode
  17. There are 2 modes (`HTTPREQ_MODE`):
  18. - default mode:
  19. ```json
  20. {
  21. "fqdn": "_acme-challenge.domain.",
  22. "value": "LHDhK3oGRvkiefQnx7OOczTY5Tic_xZ6HcMOc_gmtoM"
  23. }
  24. ```
  25. - `RAW`
  26. ```json
  27. {
  28. "domain": "domain",
  29. "token": "token",
  30. "keyAuth": "key"
  31. }
  32. ```
  33. ### Authentication
  34. Basic authentication (optional) can be set with some environment variables:
  35. - `HTTPREQ_USERNAME` and `HTTPREQ_PASSWORD`
  36. - both values must be set, otherwise basic authentication is not defined.
  37. '''
  38. [Configuration]
  39. [Configuration.Credentials]
  40. HTTPREQ_MODE = "`RAW`, none"
  41. HTTPREQ_ENDPOINT = "The URL of the server"
  42. [Configuration.Additional]
  43. HTTPREQ_USERNAME = "Basic authentication username"
  44. HTTPREQ_PASSWORD = "Basic authentication password"
  45. HTTPREQ_POLLING_INTERVAL = "Time between DNS propagation check in seconds (Default: 2)"
  46. HTTPREQ_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation in seconds (Default: 60)"
  47. HTTPREQ_HTTP_TIMEOUT = "API request timeout in seconds (Default: 30)"