Namespace: GlaceConfig

config~ GlaceConfig

Contains GlaceJS proxy configuration.

Properties:
Name Type Argument Default Description
url string <optional>
<nullable>
null

Proxied URL.

cache object

Cache config.

Properties
Name Type Argument Default Description
ttl number <optional>

Time to life cache. Default is maximum.

size number <optional>

Maximum cached file size. Default is 10 GB.

use boolean <optional>
false

Use cache.

existing boolean <optional>
false

Use existing cache if exists.

folder boolean <optional>
cwd/.proxy-cache

Cache folder.

chrome object

Chrome config.

Properties
Name Type Argument Default Description
launch boolean <optional>
false

Launch chrome browser.

incognito boolean <optional>
false

Use incognito mode in chrome.

log object

Log config.

Properties
Name Type Argument Default Description
level string <optional>
debug

Log level.

path string <optional>
cwd/glace-proxy.log

Log file path.

stdout boolean <optional>
false

Print log messages to terminal.

proxy object

Proxy config.

Properties
Name Type Argument Default Description
timeout number <optional>
60000

Proxy time to wait for remote response, ms.

http number <optional>
false

Launch http proxy.

port number <optional>
0

Proxy port. By default will be assigned by OS.

global boolean <optional>
false

Launch global proxy.

globalPort number <optional>
8888

Global proxy port.

installCertificates boolean <optional>

Install global proxy certificates as trusted. Windows only. Admin privileges are required.

reconnect number <optional>
2

Number of reconnect attemptions if remote side breaks connection.

Source: