fix: formatter
This commit is contained in:
parent
89564ccbb3
commit
fec773d8e5
58 changed files with 268 additions and 116 deletions
|
|
@ -1,2 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
default: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
|
|
@ -9,3 +10,4 @@ proxy_mode:
|
|||
- Manual proxy configuration
|
||||
- Automatic proxy configuration URL
|
||||
default: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
|
|
@ -8,3 +9,4 @@ proxy_mode:
|
|||
- Manual proxy configuration
|
||||
- Automatic proxy configuration URL
|
||||
default: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
type: family
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -6,3 +7,4 @@ manual:
|
|||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
type: family
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -9,3 +10,4 @@ manual:
|
|||
|
||||
address:
|
||||
description: HTTP address
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -7,3 +8,4 @@ manual:
|
|||
|
||||
address:
|
||||
description: HTTP address
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -8,3 +9,4 @@ manual:
|
|||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -10,3 +11,4 @@ manual:
|
|||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -15,3 +16,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -16,3 +17,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -19,3 +20,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
|
@ -18,3 +19,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -5,3 +6,4 @@ manual:
|
|||
description: Also use this proxy for HTTPS
|
||||
type: boolean
|
||||
default: true
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -18,3 +19,4 @@ manual:
|
|||
description: HTTPS Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -19,3 +20,4 @@ manual:
|
|||
description: HTTPS Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -20,3 +21,4 @@ manual:
|
|||
description: HTTPS Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -23,3 +24,4 @@ manual:
|
|||
type: port
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -19,3 +20,4 @@ manual:
|
|||
description: HTTPS Port
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -22,3 +23,4 @@ manual:
|
|||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -25,3 +26,4 @@ manual:
|
|||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -28,3 +29,4 @@ manual:
|
|||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -30,3 +31,4 @@ manual:
|
|||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -40,3 +41,4 @@ manual:
|
|||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
when_not: 'Manual proxy configuration'
|
||||
when_not: Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
|
|
@ -17,3 +18,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,31 +1,32 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
|
||||
|
|
@ -37,4 +38,5 @@ manual:
|
|||
default: v5
|
||||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
when: HTTPS
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
type: web_address
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
|
|
@ -5,3 +6,4 @@ auto:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when_not: Automatic proxy configuration URL
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -10,3 +11,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -11,3 +12,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -12,3 +13,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -12,7 +17,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -12,8 +18,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
prompt_authentication:
|
||||
description: Prompt for authentication if password is saved
|
||||
|
|
@ -5,3 +6,4 @@ prompt_authentication:
|
|||
disabled:
|
||||
variable: proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
disabled:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if manual.socks_proxy.version is propertyerror %}
|
||||
the proxy mode is not manual
|
||||
{% elif manual.socks_proxy.version == 'v4' %}
|
||||
|
|
@ -12,3 +13,4 @@ proxy_dns_socks5:
|
|||
description: |
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
mode: advanced
|
||||
default: false
|
||||
disabled:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if manual.socks_proxy.version is propertyerror %}
|
||||
the proxy mode is not manual
|
||||
{% elif manual.socks_proxy.version == 'v4' %}
|
||||
|
|
@ -13,3 +14,4 @@ proxy_dns_socks5:
|
|||
description: |
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
|
|
@ -13,3 +14,4 @@ dns_over_https: # DNS over HTTPS
|
|||
disabled:
|
||||
variable: dns_over_https.enable_dns_over_https
|
||||
when: false
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
|
|
@ -18,8 +19,9 @@ dns_over_https: # DNS over HTTPS
|
|||
description: Custom DNS URL
|
||||
type: web_address
|
||||
disabled:
|
||||
jinja: |
|
||||
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"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
|
|
@ -17,15 +18,16 @@ dns_over_https: # DNS over HTTPS
|
|||
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: |
|
||||
- jinja: |-
|
||||
{% if dns_over_https.custom_dns_url.startswith('http://') %}
|
||||
only https is allowed
|
||||
{% endif %}
|
||||
description: must starts with 'https://' only
|
||||
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"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
|
|
@ -8,3 +9,4 @@ proxy_mode:
|
|||
- Manual proxy configuration
|
||||
- Automatic proxy configuration URL
|
||||
default: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
variable: _.proxy_mode
|
||||
when_not: 'Manual proxy configuration'
|
||||
when_not: Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
|
|
@ -17,3 +18,4 @@ manual:
|
|||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
|
|
@ -38,3 +39,4 @@ manual:
|
|||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
|
|
@ -5,3 +6,4 @@ auto:
|
|||
disabled:
|
||||
variable: _.proxy_mode
|
||||
when_not: Automatic proxy configuration URL
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: "domainname"
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
allow_cidr_network: true
|
||||
|
|
@ -12,8 +18,4 @@ no_proxy:
|
|||
disabled:
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
examples:
|
||||
- .mozilla.org
|
||||
- .net.nz
|
||||
- 192.168.1.0/24
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
prompt_authentication:
|
||||
description: Prompt for authentication if password is saved
|
||||
|
|
@ -5,3 +6,4 @@ prompt_authentication:
|
|||
disabled:
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
mode: advanced
|
||||
default: false
|
||||
disabled:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if _.manual.socks_proxy.version is propertyerror %}
|
||||
the proxy mode is not manual
|
||||
{% elif _.manual.socks_proxy.version == 'v4' %}
|
||||
|
|
@ -13,3 +14,4 @@ proxy_dns_socks5:
|
|||
description: |
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
|
|
@ -17,15 +18,16 @@ dns_over_https: # DNS over HTTPS
|
|||
custom_dns_url:
|
||||
description: Custom DNS URL
|
||||
type: web_address
|
||||
disabled:
|
||||
jinja: |
|
||||
{% if _.provider is propertyerror or _.provider != 'Custom' %}
|
||||
provider is not custom
|
||||
{% endif %}
|
||||
description: if "dns_over_https.provider" is not "Custom"
|
||||
validators:
|
||||
- jinja: |
|
||||
- jinja: |-
|
||||
{% if dns_over_https.custom_dns_url.startswith('http://') %}
|
||||
only https is allowed
|
||||
{% endif %}
|
||||
description: must starts with 'https://' only
|
||||
disabled:
|
||||
jinja: |-
|
||||
{% if _.provider is propertyerror or _.provider != 'Custom' %}
|
||||
provider is not custom
|
||||
{% endif %}
|
||||
description: if "dns_over_https.provider" is not "Custom"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,31 +1,32 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if my_identifier == 'HTTPS' and _.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
|
||||
|
|
@ -37,4 +38,5 @@ manual:
|
|||
default: v5
|
||||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
when: HTTPS
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxies:
|
||||
description: Proxy configuration
|
||||
|
|
@ -7,5 +8,5 @@ proxies:
|
|||
description: Title or Description
|
||||
mandatory: false
|
||||
|
||||
color:
|
||||
description: Color
|
||||
color: # Color
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxies:
|
||||
description: Proxy configuration
|
||||
|
|
@ -9,12 +10,14 @@ proxies:
|
|||
|
||||
color:
|
||||
description: Color
|
||||
regexp: "^#(?:[0-9a-f]{3}){1,2}$"
|
||||
auto_save: true
|
||||
regexp: ^#(?:[0-9a-f]{3}){1,2}$
|
||||
default:
|
||||
jinja: |
|
||||
jinja: >-
|
||||
#
|
||||
|
||||
{%- for i in range(6) -%}
|
||||
{{- '0123456789abcdef' | random -}}
|
||||
{%- endfor -%}
|
||||
description: random color value
|
||||
auto_save: true
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxies:
|
||||
description: Proxy configuration
|
||||
|
|
@ -22,12 +23,14 @@ proxies:
|
|||
|
||||
color:
|
||||
description: Color
|
||||
regexp: "^#(?:[0-9a-f]{3}){1,2}$"
|
||||
auto_save: true
|
||||
regexp: ^#(?:[0-9a-f]{3}){1,2}$
|
||||
default:
|
||||
jinja: |
|
||||
jinja: >-
|
||||
#
|
||||
|
||||
{%- for i in range(6) -%}
|
||||
{{- '0123456789abcdef' | random -}}
|
||||
{%- endfor -%}
|
||||
description: random color value
|
||||
auto_save: true
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxies:
|
||||
description: Proxy configuration
|
||||
|
|
@ -22,15 +23,16 @@ proxies:
|
|||
|
||||
color:
|
||||
description: Color
|
||||
regexp: "^#(?:[0-9a-f]{3}){1,2}$"
|
||||
auto_save: true
|
||||
regexp: ^#(?:[0-9a-f]{3}){1,2}$
|
||||
default:
|
||||
jinja: |
|
||||
jinja: >-
|
||||
#
|
||||
|
||||
{%- for i in range(6) -%}
|
||||
{{- '0123456789abcdef' | random -}}
|
||||
{%- endfor -%}
|
||||
description: random color value
|
||||
auto_save: true
|
||||
|
||||
address:
|
||||
description: IP address, DNS name, server name
|
||||
|
|
@ -38,8 +40,14 @@ proxies:
|
|||
params:
|
||||
allow_ip: true
|
||||
allow_without_dot: true
|
||||
disabled: &needs_address
|
||||
jinja: |
|
||||
default:
|
||||
jinja: >-
|
||||
{% if firefox.manual.http_proxy.address is not propertyerror %}
|
||||
{{ firefox.manual.http_proxy.address }}
|
||||
{% endif %}
|
||||
description: copy HTTP address if proxy is not "Manual"
|
||||
disabled:
|
||||
jinja: |-
|
||||
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
||||
disabled
|
||||
{% endif %}
|
||||
|
|
@ -49,46 +57,80 @@ proxies:
|
|||
- HTTPS/SSL
|
||||
- SOCKS4
|
||||
- SOCKS5
|
||||
default:
|
||||
jinja: |
|
||||
{% if firefox.manual.http_proxy.address is not propertyerror %}
|
||||
{{ firefox.manual.http_proxy.address }}
|
||||
{% endif %}
|
||||
description: copy HTTP address if proxy is not "Manual"
|
||||
|
||||
|
||||
port:
|
||||
description: Port
|
||||
type: port
|
||||
default:
|
||||
jinja: |
|
||||
jinja: >-
|
||||
{% if firefox.manual.http_proxy.port is not propertyerror %}
|
||||
{{ firefox.manual.http_proxy.port }}
|
||||
{% endif %}
|
||||
description: copy HTTP port if proxy is not "Manual"
|
||||
disabled: *needs_address
|
||||
disabled:
|
||||
jinja: |-
|
||||
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
||||
disabled
|
||||
{% endif %}
|
||||
description: |
|
||||
if type not in:
|
||||
- HTTP
|
||||
- HTTPS/SSL
|
||||
- SOCKS4
|
||||
- SOCKS5
|
||||
|
||||
|
||||
username:
|
||||
description: Username
|
||||
type: unix_user
|
||||
mandatory:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if _.password is not propertyerror and _.password %}
|
||||
username is mandatory
|
||||
{% endif %}
|
||||
description: if a password is set
|
||||
disabled: *needs_address
|
||||
disabled:
|
||||
jinja: |-
|
||||
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
||||
disabled
|
||||
{% endif %}
|
||||
description: |
|
||||
if type not in:
|
||||
- HTTP
|
||||
- HTTPS/SSL
|
||||
- SOCKS4
|
||||
- SOCKS5
|
||||
|
||||
|
||||
password:
|
||||
description: Password
|
||||
type: secret
|
||||
mandatory: false
|
||||
disabled: *needs_address
|
||||
disabled:
|
||||
jinja: |-
|
||||
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
||||
disabled
|
||||
{% endif %}
|
||||
description: |
|
||||
if type not in:
|
||||
- HTTP
|
||||
- HTTPS/SSL
|
||||
- SOCKS4
|
||||
- SOCKS5
|
||||
|
||||
|
||||
url:
|
||||
description: URL
|
||||
type: web_address
|
||||
default:
|
||||
jinja: >-
|
||||
{% if firefox.auto is not propertyerror %}
|
||||
{{ firefox.auto }}
|
||||
{% endif %}
|
||||
description: copy HTTP address if proxy is "Auto"
|
||||
disabled:
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if _.type not in ['PAC URL', 'WPAD'] %}
|
||||
proxy does not need url
|
||||
{% endif %}
|
||||
|
|
@ -96,9 +138,4 @@ proxies:
|
|||
if type is not in:
|
||||
- PAC URL
|
||||
- WPAD
|
||||
default:
|
||||
jinja: |
|
||||
{% if firefox.auto is not propertyerror %}
|
||||
{{ firefox.auto }}
|
||||
{% endif %}
|
||||
description: copy HTTP address if proxy is "Auto"
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxies:
|
||||
|
||||
username:
|
||||
redefine: true
|
||||
mandatory: false
|
||||
|
|
@ -7,9 +9,9 @@ proxies:
|
|||
password:
|
||||
redefine: true
|
||||
hidden:
|
||||
type: jinja
|
||||
jinja: |
|
||||
jinja: |-
|
||||
{% if not _.username %}
|
||||
no username defined
|
||||
{% endif %}
|
||||
description: if username is not defined
|
||||
...
|
||||
|
|
|
|||
Loading…
Reference in a new issue