2024-11-02 14:59:00 +01:00
|
|
|
---
|
2024-11-02 14:59:01 +01:00
|
|
|
proxies:
|
|
|
|
description: Proxy configuration
|
2024-11-02 14:59:04 +01:00
|
|
|
_type: leadership
|
2024-11-02 14:59:01 +01:00
|
|
|
|
|
|
|
title:
|
|
|
|
description: Title or Description
|
|
|
|
mandatory: false
|
|
|
|
|
2024-11-02 14:59:04 +01:00
|
|
|
type:
|
|
|
|
description: Proxy Type
|
|
|
|
choices:
|
|
|
|
- HTTP
|
|
|
|
- HTTPS/SSL
|
|
|
|
- SOCKS4
|
|
|
|
- SOCKS5
|
|
|
|
- PAC URL
|
|
|
|
- WPAD
|
|
|
|
- System (use system settings)
|
|
|
|
- Direct (no proxy)
|
|
|
|
default: Direct (no proxy)
|
|
|
|
|
2024-11-02 14:59:01 +01:00
|
|
|
color:
|
|
|
|
description: Color
|
2024-11-02 14:59:03 +01:00
|
|
|
regexp: "^#(?:[0-9a-f]{3}){1,2}$"
|
|
|
|
auto_save: true
|
|
|
|
default:
|
|
|
|
jinja: |
|
|
|
|
#
|
|
|
|
{%- for i in range(6) -%}
|
|
|
|
{{- '0123456789abcdef' | random -}}
|
|
|
|
{%- endfor -%}
|
|
|
|
description: random color value
|
2024-11-02 14:59:05 +01:00
|
|
|
|
|
|
|
address:
|
|
|
|
description: IP address, DNS name, server name
|
|
|
|
type: domainname
|
|
|
|
params:
|
|
|
|
allow_ip: true
|
|
|
|
allow_without_dot: true
|
|
|
|
disabled: &needs_address
|
|
|
|
jinja: |
|
|
|
|
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
|
|
|
|
disabled
|
|
|
|
{% endif %}
|
|
|
|
description: |
|
|
|
|
if type not in:
|
|
|
|
- HTTP
|
|
|
|
- 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: |
|
|
|
|
{% 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
|
|
|
|
|
|
|
|
username:
|
|
|
|
description: Username
|
|
|
|
type: unix_user
|
|
|
|
mandatory:
|
|
|
|
jinja: |
|
|
|
|
{% if _.password is not propertyerror and _.password %}
|
|
|
|
username is mandatory
|
|
|
|
{% endif %}
|
|
|
|
description: if a password is set
|
|
|
|
disabled: *needs_address
|
|
|
|
|
|
|
|
password:
|
|
|
|
description: Password
|
|
|
|
type: secret
|
|
|
|
mandatory: false
|
|
|
|
disabled: *needs_address
|
|
|
|
|
|
|
|
url:
|
|
|
|
description: URL
|
|
|
|
type: web_address
|
|
|
|
disabled:
|
|
|
|
jinja: |
|
|
|
|
{% if _.type not in ['PAC URL', 'WPAD'] %}
|
|
|
|
proxy does not need url
|
|
|
|
{% endif %}
|
|
|
|
description: |
|
|
|
|
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"
|