rougail-tutorials_builder/examples/104/dictionaries/foxyproxy/00-foxyproxy.yml

142 lines
3 KiB
YAML
Raw Normal View History

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