rougail-tutorials/firefox/60-dns_over_https.yml

32 lines
797 B
YAML
Raw Normal View History

2024-11-02 14:58:52 +01:00
---
dns_over_https: # DNS over HTTPS
enable_dns_over_https: false # Enable DNS over HTTPS
2024-11-02 14:58:54 +01:00
provider:
description: Use Provider
choices:
- Cloudflare
- NextDNS
- Custom
default: Cloudflare
disabled:
2024-11-02 14:58:57 +01:00
variable: _.enable_dns_over_https
2024-11-02 14:58:54 +01:00
when: false
2024-11-02 14:58:55 +01:00
custom_dns_url:
description: Custom DNS URL
type: web_address
disabled:
jinja: |
2024-11-02 14:58:57 +01:00
{% if _.provider is propertyerror or _.provider != 'Custom' %}
2024-11-02 14:58:55 +01:00
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