fix: update
This commit is contained in:
parent
fec773d8e5
commit
59dd77e74d
104 changed files with 483 additions and 425 deletions
1
TITLE
Normal file
1
TITLE
Normal file
|
|
@ -0,0 +1 @@
|
|||
[init] Discover Rougail
|
||||
90
build.py
90
build.py
|
|
@ -7,8 +7,8 @@ from ansi2html import Ansi2HTMLConverter
|
|||
|
||||
from rougail import Rougail
|
||||
from rougail.config import get_rougail_config
|
||||
from rougail.output_exporter import RougailOutputExporter
|
||||
from rougail.user_data_file import RougailUserDataFile
|
||||
from rougail.output_console import RougailOutputConsole
|
||||
from rougail.user_data_yaml import RougailUserDataYaml
|
||||
from rougail.output_doc import RougailOutputDoc
|
||||
|
||||
|
||||
|
|
@ -16,8 +16,8 @@ if __name__ == "__main__":
|
|||
version = sys.argv[1]
|
||||
# rougailconfig = RougailConfig.copy()
|
||||
rougailconfig = get_rougail_config(backward_compatibility=False, add_extra_options=False)
|
||||
rougailconfig['main_dictionaries'] = ['firefox']
|
||||
rougailconfig['default_dictionary_format_version'] = version
|
||||
rougailconfig['main_structural_directories'] = ['firefox']
|
||||
rougailconfig['default_structural_format_version'] = version
|
||||
if Path('config/namespace').is_file():
|
||||
has_namespace = True
|
||||
has_foxyproxy = False
|
||||
|
|
@ -25,26 +25,26 @@ if __name__ == "__main__":
|
|||
has_foxyproxy = True
|
||||
has_namespace = True
|
||||
rougailconfig['main_namespace'] = 'Firefox'
|
||||
rougailconfig['extra_dictionaries'] = {'FoxyProxy': ['foxyproxy']}
|
||||
rougailconfig['extra_namespaces'] = {'FoxyProxy': ['foxyproxy']}
|
||||
else:
|
||||
has_foxyproxy = False
|
||||
has_namespace = False
|
||||
rougailconfig['main_namespace'] = None
|
||||
# rougailconfig['tiramisu_cache'] = "cache.py"
|
||||
# rougail = Rougail(rougailconfig)
|
||||
# config = rougail.get_config()
|
||||
# print(config.value.get())
|
||||
rougailconfig['step.output'] = 'doc'
|
||||
rougailconfig['doc.output_format'] = 'github'
|
||||
rougailconfig['doc.title_level'] = 3
|
||||
if Path('mode').is_file():
|
||||
rougailconfig['modes_level'] = ['basic', 'standard', 'advanced']
|
||||
has_mode = True
|
||||
else:
|
||||
has_mode = False
|
||||
inventory = RougailOutputDoc(rougailconfig=rougailconfig.copy())
|
||||
rougailconfig['step.output'] = 'exporter'
|
||||
header = inventory.formater.header()
|
||||
rougail = Rougail(rougailconfig)
|
||||
config = rougail.run()
|
||||
# print(config.value.get())
|
||||
rougailconfig['step.output'] = 'doc'
|
||||
rougailconfig['doc.output_format'] = 'github'
|
||||
rougailconfig['doc.title_level'] = 3
|
||||
inventory = RougailOutputDoc(config, rougailconfig=rougailconfig.copy())
|
||||
inventory.load_formatter()
|
||||
rougailconfig['step.output'] = 'console'
|
||||
summary = Path('summary_before.md')
|
||||
if summary.is_file():
|
||||
with summary.open('r') as sfh:
|
||||
|
|
@ -55,32 +55,36 @@ if __name__ == "__main__":
|
|||
namespace = 'firefox'
|
||||
file_found = False
|
||||
if rougailconfig['main_namespace']:
|
||||
all_dirs = [[rougailconfig['main_dictionaries']], rougailconfig['extra_dictionaries'].values()]
|
||||
all_dirs = [[rougailconfig['main_structural_directories']], [['foxyproxy']]]
|
||||
else:
|
||||
all_dirs = [[rougailconfig['main_dictionaries']]]
|
||||
all_dirs = [[rougailconfig['main_structural_directories']]]
|
||||
|
||||
doc += inventory.formater.title('Screenshot', 2) + '\n'
|
||||
doc += inventory.formatter.title('Screenshot', 2) + '\n'
|
||||
doc += f'<img src="{namespace}.png" width=50% height=50% alt="{namespace.capitalize()} Proxy setting"/>\n\n'
|
||||
# with doc_file.open('r') as docfh:
|
||||
# doc += docfh.read()
|
||||
doc += '\n' + inventory.formater.title('Structure', 2) + '\n'
|
||||
doc += '\n' + inventory.formatter.title('Structure', 2) + '\n'
|
||||
print(all_dirs)
|
||||
for r in all_dirs:
|
||||
for dirs in r:
|
||||
for d in dirs:
|
||||
print(d)
|
||||
files = list(Path(d).iterdir())
|
||||
files.sort()
|
||||
for f in files:
|
||||
namespace = f.parent.name
|
||||
file_found = True
|
||||
if f.name.endswith('.yml') or f.name.endswith('.yaml'):
|
||||
doc += inventory.formater.title(str(f), 3)
|
||||
doc += inventory.formatter.title(str(f), 3)
|
||||
doc += '\n```yml\n'
|
||||
with f.open(encoding="utf8") as file_fh:
|
||||
doc += file_fh.read()
|
||||
doc += '\n```\n'
|
||||
inv_doc = inventory.gen_doc()
|
||||
rougailconfig['step.output'] = 'doc'
|
||||
inv_doc = inventory.run()[1]
|
||||
rougailconfig['step.output'] = 'console'
|
||||
if file_found and inv_doc:
|
||||
doc += inventory.formater.title('Generated documentation', 3)
|
||||
doc += inventory.formatter.title('Generated documentation', 3)
|
||||
CMD = f"foo@bar:~$ rougail -v {version} -m firefox/ "
|
||||
if has_namespace:
|
||||
CMD += "-s Firefox "
|
||||
|
|
@ -94,7 +98,7 @@ if __name__ == "__main__":
|
|||
#
|
||||
config = Path('config')
|
||||
if config.is_dir():
|
||||
doc += inventory.formater.title('User data', 2)
|
||||
doc += inventory.formatter.title('User data', 2)
|
||||
configs = list(config.iterdir())
|
||||
configs.sort()
|
||||
for idx, dirname in enumerate(configs):
|
||||
|
|
@ -102,58 +106,54 @@ if __name__ == "__main__":
|
|||
continue
|
||||
for filename in dirname.iterdir():
|
||||
if filename.name.endswith('.yml') or filename.name.endswith('.yaml'):
|
||||
doc += inventory.formater.title(f'Example {idx + 1}', 3)
|
||||
doc += inventory.formater.title(str(filename), 4)
|
||||
doc += inventory.formatter.title(f'Example {idx + 1}', 3)
|
||||
doc += inventory.formatter.title(str(filename), 4)
|
||||
doc += '\n```yml\n'
|
||||
with filename.open(encoding="utf8") as file_fh:
|
||||
doc += file_fh.read()
|
||||
doc += '\n```\n'
|
||||
# with filename.open(encoding="utf8") as file_fh:
|
||||
# objects = yaml.load(file_fh)
|
||||
# doc += inventory.formater.yaml(objects)
|
||||
# doc += inventory.formatter.yaml(objects)
|
||||
#readme = dirname / 'README.md'
|
||||
#if readme.is_file():
|
||||
# doc += inventory.formater.title('Description', 4)
|
||||
# doc += inventory.formatter.title('Description', 4)
|
||||
# with readme.open() as fh:
|
||||
# doc += fh.read() + '\n\n'
|
||||
rougail = Rougail(rougailconfig)
|
||||
tiramisu_config = rougail.get_config()
|
||||
rougailconfig['step.user_data'] = ['file']
|
||||
rougailconfig['file.filename'] = [str(filename.absolute())]
|
||||
data = RougailUserDataFile(tiramisu_config, rougailconfig=rougailconfig)
|
||||
tiramisu_config = rougail.run()
|
||||
rougailconfig['step.user_data'] = ['yaml']
|
||||
rougailconfig['yaml.filename'] = [str(filename.absolute())]
|
||||
data = RougailUserDataYaml(tiramisu_config, rougailconfig=rougailconfig)
|
||||
ret = data.run()
|
||||
errors = rougail.user_datas(ret)
|
||||
export = RougailOutputExporter(tiramisu_config,
|
||||
export = RougailOutputConsole(tiramisu_config,
|
||||
rougailconfig=rougailconfig,
|
||||
user_data_errors=errors['errors'],
|
||||
user_data_warnings=errors['warnings'],
|
||||
)
|
||||
export.exporter()
|
||||
with export.formater.console.capture() as capture:
|
||||
export.print()
|
||||
console = export.run()[1]
|
||||
conv = Ansi2HTMLConverter(inline=True)
|
||||
doc += inventory.formater.title('Output', 4)
|
||||
cmd = CMD + f"-u file -ff {filename}"
|
||||
doc += inventory.formatter.title('Output', 4)
|
||||
cmd = CMD + f"-u yaml -ff {filename}"
|
||||
doc += f"```console\n{cmd}\n```\n"
|
||||
conv_data = '<pre>' + conv.convert(capture.get(), full=False) + "</pre>\n"
|
||||
conv_data = '<pre>' + conv.convert(console, full=False) + "</pre>\n"
|
||||
doc += conv_data
|
||||
with open(dirname / 'output_ro.html', 'w') as fh_output:
|
||||
fh_output.write(conv_data)
|
||||
if (config / 'read_write').is_file():
|
||||
rougailconfig['exporter.read_write'] = True
|
||||
export = RougailOutputExporter(tiramisu_config,
|
||||
tiramisu_config.property.read_write
|
||||
export = RougailOutputConsole(tiramisu_config,
|
||||
rougailconfig=rougailconfig,
|
||||
user_data_errors=data.errors,
|
||||
user_data_warnings=data.warnings,
|
||||
)
|
||||
export.exporter()
|
||||
with export.formater.console.capture() as capture:
|
||||
export.print()
|
||||
console = export.run()[1]
|
||||
conv = Ansi2HTMLConverter(inline=True)
|
||||
doc += inventory.formater.title('Output in read write mode', 4)
|
||||
cmd = cmd + " --exporter.read_write"
|
||||
doc += inventory.formatter.title('Output in read write mode', 4)
|
||||
cmd = cmd + " --cli.read_write"
|
||||
doc += f"```console\n{cmd}\n```\n"
|
||||
conv_data = '<pre>' + conv.convert(capture.get(), full=False) + "</pre>\n"
|
||||
conv_data = '<pre>' + conv.convert(console, full=False) + "</pre>\n"
|
||||
doc += '<pre>' + conv_data + "</pre>\n"
|
||||
with open(dirname / 'output_rw.html', 'w') as fh_output:
|
||||
fh_output.write(conv_data)
|
||||
|
|
|
|||
2
build.sh
2
build.sh
|
|
@ -61,7 +61,7 @@ for i in $(ls -d "examples"/* | sort); do
|
|||
diff_url="https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/${commit_id}~1..$commit_id"
|
||||
echo " - [$summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/$commit_id/README.md) ([diff]($diff_url))" >> summary.md
|
||||
cp "summary_total.md" "$DEST"
|
||||
cd "$i/dictionaries"
|
||||
cd "$i/structural_files"
|
||||
if [ -d firefox ]; then
|
||||
for j in $(ls firefox/*.yml 2>/dev/null); do
|
||||
cp "$j" "$DEST/$j"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
...
|
||||
|
|
@ -1 +0,0 @@
|
|||
---
|
||||
4
examples/001/structural_files/firefox/00-proxy.yml
Normal file
4
examples/001/structural_files/firefox/00-proxy.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
...
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode:
|
||||
...
|
||||
|
|
@ -6,4 +6,4 @@ This information is useful for:
|
|||
|
||||
- documentation
|
||||
- error message
|
||||
- help user to known which value to set to this variable (for example with [the user data plugin Questionary](https://forge.cloud.silique.fr/gnunux/rougail-user-data-questionary)).
|
||||
- help user to known which value to set to this variable (for example with [the user data plugin Questionary](https://forge.cloud.silique.fr/stove/rougail-user-data-questionary)).
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
...
|
||||
6
examples/011/structural_files/firefox/00-proxy.yml
Normal file
6
examples/011/structural_files/firefox/00-proxy.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode: # Configure Proxy Access to the Internet
|
||||
...
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
default: No proxy
|
||||
...
|
||||
6
examples/012/structural_files/firefox/00-proxy.yml
Normal file
6
examples/012/structural_files/firefox/00-proxy.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode: No proxy # Configure Proxy Access to the Internet
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
type: choice
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
choices:
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
type: family
|
||||
|
|
@ -3,5 +3,6 @@ A sub family
|
|||
Inside a family, we can have variables or families.
|
||||
|
||||
The "type" for family "manual" became unecessary because container an other family, so it's not a variable.
|
||||
The description can now be has family comment.
|
||||
|
||||
In disabled attribute, it's better tu use relative path (we will see the reason in an other slide).
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
type: family
|
||||
version: 1.1
|
||||
|
||||
manual: # Manual proxy configuration
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
type: family
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
type: family
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
...
|
||||
10
examples/022/structural_files/firefox/10-manual.yml
Normal file
10
examples/022/structural_files/firefox/10-manual.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual: # Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address: # HTTP address
|
||||
...
|
||||
|
|
@ -1 +1 @@
|
|||
Family type is optional
|
||||
A variable with type "domainname"
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
../010/config
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
...
|
||||
12
examples/023/structural_files/firefox/10-manual.yml
Normal file
12
examples/023/structural_files/firefox/10-manual.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual: # Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
...
|
||||
|
|
@ -1 +1 @@
|
|||
A variable with type "domainname"
|
||||
A variable with type's parameters
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
...
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
version: 1.1
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
manual: # Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
|
|
@ -1 +1 @@
|
|||
A variable with type's parameters
|
||||
A variable with type "port"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
version: 1.1
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
manual: # Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
|
|
@ -1 +1 @@
|
|||
A variable with type "port"
|
||||
A disabled family
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled: true
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
|
|
@ -1 +1 @@
|
|||
A disabled family
|
||||
A conditional disabled family with a variable
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
|
|
@ -1 +1 @@
|
|||
A conditional disabled family with a variable
|
||||
Type variable is optional
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
type: variable
|
||||
variable: proxy_mode
|
||||
when_not: 'Manual proxy configuration'
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
|
||||
port:
|
||||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when_not: Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
|
@ -1 +0,0 @@
|
|||
Type variable is optional
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
type: boolean
|
||||
default: true
|
||||
...
|
||||
8
examples/030/structural_files/firefox/20-manual.yml
Normal file
8
examples/030/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
...
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
...
|
||||
8
examples/031/structural_files/firefox/20-manual.yml
Normal file
8
examples/031/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
...
|
||||
|
|
@ -1,15 +1,12 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
hidden:
|
||||
variable: manual.use_for_https
|
||||
https_proxy: # HTTPS Proxy
|
||||
|
||||
address:
|
||||
description: HTTPS address
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
hidden:
|
||||
variable: _.use_for_https
|
||||
|
||||
address:
|
||||
description: HTTPS address
|
||||
|
|
@ -1,15 +1,15 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
hidden:
|
||||
variable: manual.use_for_https
|
||||
variable: _.use_for_https
|
||||
|
||||
address:
|
||||
description: HTTPS address
|
||||
|
|
@ -17,11 +17,11 @@ manual:
|
|||
params:
|
||||
allow_ip: true
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: HTTPS Port
|
||||
type: port
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
hidden:
|
||||
variable: manual.use_for_https
|
||||
|
||||
address:
|
||||
description: HTTPS address
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: HTTPS Port
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
23
examples/036/structural_files/firefox/20-manual.yml
Normal file
23
examples/036/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
https_proxy:
|
||||
description: HTTPS Proxy
|
||||
hidden:
|
||||
variable: _.use_for_https
|
||||
|
||||
address:
|
||||
description: HTTPS address
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: HTTPS Port
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
variable: manual.use_for_https
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
26
examples/040/structural_files/firefox/20-manual.yml
Normal file
26
examples/040/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
variable: _.use_for_https
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
jinja: |
|
||||
{% if manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
29
examples/041/structural_files/firefox/20-manual.yml
Normal file
29
examples/041/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
jinja: |-
|
||||
{% if manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
jinja: |
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
32
examples/042/structural_files/firefox/20-manual.yml
Normal file
32
examples/042/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
jinja: |-
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
jinja: |
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
...
|
||||
33
examples/043/structural_files/firefox/20-manual.yml
Normal file
33
examples/043/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
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
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
...
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
manual:
|
||||
|
||||
use_for_https:
|
||||
description: Also use this proxy for HTTPS
|
||||
default: true
|
||||
|
||||
"{{ identifier }}_proxy":
|
||||
description: "{{ identifier }} Proxy"
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
jinja: |
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
|
||||
version:
|
||||
description: SOCKS host version used by proxy
|
||||
choices:
|
||||
- v4
|
||||
- v5
|
||||
default: v5
|
||||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
|
@ -11,8 +13,7 @@ manual:
|
|||
{% 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
|
||||
description: in HTTPS case if "manual.use_for_https" is set to True
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
|
|
@ -23,12 +24,12 @@ manual:
|
|||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: manual.http_proxy.address
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
variable: __.http_proxy.port
|
||||
|
||||
version:
|
||||
description: SOCKS host version used by proxy
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
when_not: 'Manual proxy configuration'
|
||||
variable: _.proxy_mode
|
||||
when_not: Manual proxy configuration
|
||||
|
||||
http_proxy:
|
||||
description: HTTP Proxy
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
43
examples/051/structural_files/firefox/20-manual.yml
Normal file
43
examples/051/structural_files/firefox/20-manual.yml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
||||
'{{ identifier }}_proxy':
|
||||
description: '{{ identifier }} Proxy'
|
||||
hidden:
|
||||
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
|
||||
dynamic:
|
||||
- HTTPS
|
||||
- SOCKS
|
||||
|
||||
address:
|
||||
description: '{{ identifier }} address'
|
||||
default:
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: __.http_proxy.port
|
||||
|
||||
version:
|
||||
description: SOCKS host version used by proxy
|
||||
choices:
|
||||
- v4
|
||||
- v5
|
||||
default: v5
|
||||
disabled:
|
||||
type: identifier
|
||||
when: HTTPS
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
type: web_address
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
type: web_address
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: domainname
|
||||
|
|
@ -9,6 +11,6 @@ no_proxy:
|
|||
allow_without_dot: true
|
||||
allow_startswith_dot: true
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: domainname
|
||||
|
|
@ -10,6 +12,6 @@ no_proxy:
|
|||
allow_startswith_dot: true
|
||||
multi: true
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
type: domainname
|
||||
|
|
@ -11,6 +13,6 @@ no_proxy:
|
|||
multi: true
|
||||
mandatory: false
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
examples:
|
||||
|
|
@ -15,6 +17,6 @@ no_proxy:
|
|||
multi: true
|
||||
mandatory: false
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
prompt_authentication:
|
||||
description: Prompt for authentication if password is saved
|
||||
default: true
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
...
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_dns_socks5: false # Use proxy DNS when using SOCKS v5
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
default: false
|
||||
|
|
@ -10,7 +12,7 @@ proxy_dns_socks5:
|
|||
{% elif manual.socks_proxy.version == 'v4' %}
|
||||
socks version is v4
|
||||
{% endif %}
|
||||
description: |
|
||||
description: |-
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
mode: advanced
|
||||
|
|
@ -11,7 +13,7 @@ proxy_dns_socks5:
|
|||
{% elif manual.socks_proxy.version == 'v4' %}
|
||||
socks version is v4
|
||||
{% endif %}
|
||||
description: |
|
||||
description: |-
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
|
|
@ -12,6 +14,6 @@ dns_over_https: # DNS over HTTPS
|
|||
- Custom
|
||||
default: Cloudflare
|
||||
disabled:
|
||||
variable: dns_over_https.enable_dns_over_https
|
||||
variable: _.enable_dns_over_https
|
||||
when: false
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
|
|
@ -12,7 +14,7 @@ dns_over_https: # DNS over HTTPS
|
|||
- Custom
|
||||
default: Cloudflare
|
||||
disabled:
|
||||
variable: dns_over_https.enable_dns_over_https
|
||||
variable: _.enable_dns_over_https
|
||||
when: false
|
||||
|
||||
custom_dns_url:
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
|
|
@ -12,7 +14,7 @@ dns_over_https: # DNS over HTTPS
|
|||
- Custom
|
||||
default: Cloudflare
|
||||
disabled:
|
||||
variable: dns_over_https.enable_dns_over_https
|
||||
variable: _.enable_dns_over_https
|
||||
when: false
|
||||
|
||||
custom_dns_url:
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_mode:
|
||||
description: Configure Proxy Access to the Internet
|
||||
choices:
|
||||
23
examples/090/structural_files/firefox/10-manual.yml
Normal file
23
examples/090/structural_files/firefox/10-manual.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
description: Manual proxy configuration
|
||||
disabled:
|
||||
variable: _.proxy_mode
|
||||
when_not: Manual proxy configuration
|
||||
|
||||
http_proxy: # HTTP Proxy
|
||||
|
||||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
|
||||
port:
|
||||
description: HTTP Port
|
||||
type: port
|
||||
default: 8080
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
manual:
|
||||
|
||||
use_for_https: true # Also use this proxy for HTTPS
|
||||
|
|
@ -11,8 +13,7 @@ manual:
|
|||
{% 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
|
||||
description: in HTTPS case if "manual.use_for_https" is set to True
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
auto:
|
||||
description: Automatic proxy configuration URL
|
||||
type: web_address
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when_not: Automatic proxy configuration URL
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
no_proxy:
|
||||
description: Address for which proxy will be desactivated
|
||||
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
|
||||
|
|
@ -16,6 +18,6 @@ no_proxy:
|
|||
multi: true
|
||||
mandatory: false
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
prompt_authentication:
|
||||
description: Prompt for authentication if password is saved
|
||||
default: true
|
||||
disabled:
|
||||
variable: proxy_mode
|
||||
variable: _.proxy_mode
|
||||
when: No proxy
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxy_dns_socks5:
|
||||
description: Use proxy DNS when using SOCKS v5
|
||||
mode: advanced
|
||||
|
|
@ -11,7 +13,7 @@ proxy_dns_socks5:
|
|||
{% elif _.manual.socks_proxy.version == 'v4' %}
|
||||
socks version is v4
|
||||
{% endif %}
|
||||
description: |
|
||||
description: |-
|
||||
if "firefox.proxy_mode" is not "Manual proxy configuration"
|
||||
or "firefox.manual.socks_proxy.version" is "v4"
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
dns_over_https: # DNS over HTTPS
|
||||
|
||||
enable_dns_over_https: false # Enable DNS over HTTPS
|
||||
|
|
@ -1,34 +1,35 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
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: manual.http_proxy.address
|
||||
variable: __.http_proxy.address
|
||||
|
||||
port:
|
||||
description: "{{ identifier }} port"
|
||||
description: '{{ identifier }} port'
|
||||
default:
|
||||
variable: manual.http_proxy.port
|
||||
variable: __.http_proxy.port
|
||||
|
||||
version:
|
||||
description: SOCKS host version used by proxy
|
||||
|
|
@ -38,5 +39,5 @@ manual:
|
|||
default: v5
|
||||
disabled:
|
||||
type: identifier
|
||||
when: 'HTTPS'
|
||||
when: HTTPS
|
||||
...
|
||||
4
examples/092/structural_files/firefox/empty.yml
Normal file
4
examples/092/structural_files/firefox/empty.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
...
|
||||
|
|
@ -1 +0,0 @@
|
|||
---
|
||||
4
examples/100/structural_files/foxyproxy/00-foxyproxy.yml
Normal file
4
examples/100/structural_files/foxyproxy/00-foxyproxy.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
...
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
version: 1.1
|
||||
|
||||
proxies:
|
||||
description: Proxy configuration
|
||||
type: leadership
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue