31 lines
836 B
YAML
31 lines
836 B
YAML
---
|
|
dns_over_https: # DNS over HTTPS
|
|
|
|
enable_dns_over_https: false # Enable DNS over HTTPS
|
|
|
|
provider:
|
|
description: Use Provider
|
|
choices:
|
|
- Cloudflare
|
|
- NextDNS
|
|
- Custom
|
|
default: Cloudflare
|
|
disabled:
|
|
variable: dns_over_https.enable_dns_over_https
|
|
when: false
|
|
|
|
custom_dns_url:
|
|
description: Custom DNS URL
|
|
type: web_address
|
|
disabled:
|
|
jinja: |
|
|
{% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %}
|
|
provider is not custom
|
|
{% endif %}
|
|
description: if "dns_over_https.provider" is not "Custom"
|
|
validators:
|
|
- jinja: |
|
|
{% if dns_over_https.custom_dns_url.startswith('http://') %}
|
|
only https is allowed
|
|
{% endif %}
|
|
description: must starts with 'https://' only
|