121 lines
2.6 KiB
YAML
121 lines
2.6 KiB
YAML
---
|
|
version: 1.1
|
|
proxies:
|
|
description: Proxy configuration
|
|
_type: leadership
|
|
|
|
title:
|
|
description: Title or Description
|
|
multi: true
|
|
|
|
color:
|
|
description: Color
|
|
|
|
type:
|
|
description: Type
|
|
type: choice
|
|
choices:
|
|
- HTTP
|
|
- HTTPS/SSL
|
|
- SOCKS4
|
|
- SOCKS5
|
|
- PAC URL
|
|
- WPAD
|
|
- System (use system settings)
|
|
- Direct (no proxy)
|
|
default: Direct (no proxy)
|
|
|
|
address:
|
|
description: IP address, DNS name, server name
|
|
multi: true
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
|
proxy does not need address
|
|
{% endif %}
|
|
description: &needs_address |
|
|
if type not in:
|
|
|
|
- HTTP
|
|
- HTTPS/SSL
|
|
- SOCKS4
|
|
- SOCKS5
|
|
|
|
default:
|
|
type: jinja
|
|
jinja: |
|
|
{% if firefox_address is not undefined %}
|
|
{{ firefox_address }}
|
|
{% endif %}
|
|
params:
|
|
firefox_address:
|
|
type: variable
|
|
variable: proxy.manual.http_proxy.address
|
|
propertyerror: false
|
|
description: copy HTTP address if proxy is not "Manual"
|
|
|
|
port:
|
|
description: Port
|
|
type: port
|
|
default:
|
|
type: jinja
|
|
jinja: |
|
|
{% if firefox_port is not undefined %}
|
|
{{ firefox_port }}
|
|
{% endif %}
|
|
params:
|
|
firefox_port:
|
|
type: variable
|
|
variable: proxy.manual.http_proxy.port
|
|
propertyerror: false
|
|
description: copy HTTP port if proxy is not "Manual"
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
|
proxy does not need port
|
|
{% endif %}
|
|
description: *needs_address
|
|
|
|
username:
|
|
description: Username
|
|
type: unix_user
|
|
mandatory:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.password %}
|
|
username is mandatory
|
|
{% endif %}
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
|
proxy does not need username
|
|
{% endif %}
|
|
description: *needs_address
|
|
|
|
password:
|
|
description: Password
|
|
type: secret
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
|
proxy does not need password
|
|
{% endif %}
|
|
description: *needs_address
|
|
|
|
url:
|
|
type: web_address
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.type not in ['PAC URL', 'WPAD'] %}
|
|
proxy does not need url
|
|
{% endif %}
|
|
description: |
|
|
if type is not in:
|
|
|
|
- PAC URL
|
|
- WPAD
|