mirror of
https://github.com/go-acme/lego.git
synced 2024-12-23 09:15:11 +02:00
2.4 KiB
2.4 KiB
title | date | draft | slug | dnsprovider | ||||||
---|---|---|---|---|---|---|---|---|---|---|
HTTP request | 2019-03-03T16:39:46+01:00 | false | httpreq |
|
Configuration for HTTP request.
- Code:
httpreq
- Since: v2.0.0
Here is an example bash command using the HTTP request provider:
HTTPREQ_ENDPOINT=http://my.server.com:9090 \
lego --email you@example.com --dns httpreq --domains my.example.org run
Credentials
Environment Variable Name | Description |
---|---|
HTTPREQ_ENDPOINT |
The URL of the server |
HTTPREQ_MODE |
RAW , none |
The environment variable names can be suffixed by _FILE
to reference a file instead of a value.
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
Additional Configuration
Environment Variable Name | Description |
---|---|
HTTPREQ_HTTP_TIMEOUT |
API request timeout |
HTTPREQ_PASSWORD |
Basic authentication password |
HTTPREQ_POLLING_INTERVAL |
Time between DNS propagation check |
HTTPREQ_PROPAGATION_TIMEOUT |
Maximum waiting time for DNS propagation |
HTTPREQ_USERNAME |
Basic authentication username |
The environment variable names can be suffixed by _FILE
to reference a file instead of a value.
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
Description
The server must provide:
POST
/present
POST
/cleanup
The URL of the server must be defined 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
andHTTPREQ_PASSWORD
- both values must be set, otherwise basic authentication is not defined.