mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
feat: upgrade lego for supporting huaweicloud dns #395
This commit is contained in:
parent
d1984a06a3
commit
f2a586ca78
7 changed files with 54 additions and 7 deletions
|
@ -15,7 +15,7 @@ lego --email you@example.com --dns dnshomede --domains my.example.org --domains
|
|||
[Configuration]
|
||||
[Configuration.Credentials]
|
||||
DNSHOMEDE_CREDENTIALS = "Comma-separated list of domain:password credential pairs"
|
||||
[Configuration.Addtional]
|
||||
[Configuration.Additional]
|
||||
DNSHOMEDE_POLLING_INTERVAL = "Time between DNS propagation checks"
|
||||
DNSHOMEDE_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation; defaults to 300s (5 minutes)"
|
||||
DNSHOMEDE_SEQUENCE_INTERVAL = "Time between sequential requests"
|
||||
|
|
|
@ -16,7 +16,6 @@ lego --email you@example.com --dns exoscale --domains my.example.org run
|
|||
EXOSCALE_API_SECRET = "API secret"
|
||||
[Configuration.Additional]
|
||||
EXOSCALE_ENDPOINT = "API endpoint URL"
|
||||
EXOSCALE_API_ZONE = "API zone"
|
||||
EXOSCALE_POLLING_INTERVAL = "Time between DNS propagation check"
|
||||
EXOSCALE_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
||||
EXOSCALE_TTL = "The TTL of the TXT record used for the DNS challenge"
|
||||
|
|
29
internal/cert/config/huaweicloud.toml
Normal file
29
internal/cert/config/huaweicloud.toml
Normal file
|
@ -0,0 +1,29 @@
|
|||
Name = "Huawei Cloud"
|
||||
Description = ''''''
|
||||
URL = "https://huaweicloud.com"
|
||||
Code = "huaweicloud"
|
||||
Since = "v4.19"
|
||||
|
||||
Example = '''
|
||||
HUAWEICLOUD_ACCESS_KEY_ID=your-access-key-id \
|
||||
HUAWEICLOUD_SECRET_ACCESS_KEY=your-secret-access-key \
|
||||
HUAWEICLOUD_REGION=cn-south-1 \
|
||||
lego --email you@example.com --dns huaweicloud --domains my.example.org run
|
||||
'''
|
||||
|
||||
[Configuration]
|
||||
[Configuration.Credentials]
|
||||
HUAWEICLOUD_ACCESS_KEY_ID = "Access key ID"
|
||||
HUAWEICLOUD_SECRET_ACCESS_KEY = "Access Key secret"
|
||||
HUAWEICLOUD_REGION = "Region"
|
||||
|
||||
[Configuration.Additional]
|
||||
HUAWEICLOUD_POLLING_INTERVAL = "Time between DNS propagation check"
|
||||
HUAWEICLOUD_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
||||
HUAWEICLOUD_TTL = "The TTL of the TXT record used for the DNS challenge"
|
||||
HUAWEICLOUD_HTTP_TIMEOUT = "API request timeout"
|
||||
|
||||
[Links]
|
||||
API = "https://console-intl.huaweicloud.com/apiexplorer/#/openapi/DNS/doc?locale=en-us"
|
||||
CN_API = "https://support.huaweicloud.com/api-dns/zh-cn_topic_0132421999.html"
|
||||
GoClient = "https://github.com/huaweicloud/huaweicloud-sdk-go-v3"
|
|
@ -38,7 +38,7 @@ HURRICANE_TOKENS=example.org:token
|
|||
[Configuration]
|
||||
[Configuration.Credentials]
|
||||
HURRICANE_TOKENS = "TXT record names and tokens"
|
||||
[Configuration.Addtional]
|
||||
[Configuration.Additional]
|
||||
HURRICANE_POLLING_INTERVAL = "Time between DNS propagation checks"
|
||||
HURRICANE_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation; defaults to 300s (5 minutes)"
|
||||
HURRICANE_SEQUENCE_INTERVAL = "Time between sequential requests"
|
||||
|
|
|
@ -13,6 +13,12 @@ OVH_CONSUMER_KEY=256vfsd347245sdfg \
|
|||
OVH_ENDPOINT=ovh-eu \
|
||||
lego --email you@example.com --dns ovh --domains my.example.org run
|
||||
|
||||
# Or Access Token:
|
||||
|
||||
OVH_ACCESS_TOKEN=xxx \
|
||||
OVH_ENDPOINT=ovh-eu \
|
||||
lego --email you@example.com --dns ovh --domains my.example.org run
|
||||
|
||||
# Or OAuth2:
|
||||
|
||||
OVH_CLIENT_ID=yyy \
|
||||
|
@ -68,6 +74,7 @@ Both authentication methods cannot be used at the same time.
|
|||
OVH_CONSUMER_KEY = "Consumer key (Application Key authentication)"
|
||||
OVH_CLIENT_ID = "Client ID (OAuth2)"
|
||||
OVH_CLIENT_SECRET = "Client secret (OAuth2)"
|
||||
OVH_ACCESS_TOKEN = "Access token"
|
||||
[Configuration.Additional]
|
||||
OVH_POLLING_INTERVAL = "Time between DNS propagation check"
|
||||
OVH_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue