-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample_relay.conf
159 lines (134 loc) · 4.31 KB
/
example_relay.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Relay config version
# Mandatory. Must equal 1.
version: 1
# Unique Relay id
# Environment variable: $RELAY_ID
# Default: none
# Required: yes
# id: aad48b34-5493-4107-9dc0-32dc710938ec
# Number of allowed concurrent command invocations
# Environment variable: $RELAY_MAX_CONCURRENT
# Default: 16
max_concurrent: 8
# Path to dynamic bundle config files
# Missing or empty value disables.
# Path will be created if it doesn't exist.
# Environment variable: $RELAY_DYNAMIC_CONFIG_ROOT
# Default: none
# Required: No
# dynamic_config_root: /tmp/dynamic_configs
# Use managed dynamic configuration
# Requires dynamic_config_root
# Environment variable: $RELAY_MANAGED_DYNAMIC_CONFIG
# Default: true
# managed_dynamic_config: false
# Refresh interval for managed dynamic configuration files.
# Valid time units are s (seconds), m (minutes), and h (hours).
# Requires managed_dynamic_config
# Environment variable: $RELAY_MANAGED_DYNAMIC_CONFIG_INTERVAL
# Default: 5s
# Log level
# Environment variable: $RELAY_LOG_LEVEL
# Default: info
log_level: debug
# Log JSON? If false, plain text will be used.
# Environment variable: $RELAY_LOG_JSON
# Default: false
log_json: false
# Log output path
# Valid values: File path, stdout or console, stderr
# Environment variable: $RELAY_LOG_PATH
# Default: stdout
log_path: console
# Comma separated list of enabled command execution
# engines.
# Available engines: native,docker
# Environment variable: $RELAY_ENABLED_ENGINES
# Default: native,docker
# Note: At least one engine must be enabled.
enabled_engines: native
# Information required to connect to Cog
cog:
# Cog's host name or IP address
# Environment variable: $RELAY_COG_HOST
# Default: 127.0.0.1
host: 127.0.0.1
# Cog's MQTT port
# Environment variable: $RELAY_COG_PORT
# Default: 1883
port: 1883
# Use SSL to establish MQTT connection
# Environment variable: $RELAY_COG_ENABLE_SSL
# Default: false
enable_ssl: false
# Path to server certificate
# Enables certificate verification if set
# Environment variable: $RELAY_COG_SSL_CERT_PATH
# Default: none
# Required: no
# ssl_cert_path: /path/to/server.pem
# Cog shared secret
# Environment variable: $RELAY_COG_TOKEN
# Default: none
# Required: Yes
token: sekrit
# Relay will refresh its bundle and Docker images
# on this interval. Valid time units are s (seconds),
# m (minutes), and h (hours).
# Environment variable: $RELAY_COG_REFRESH_INTERVAL
# Default: 1m
refresh_interval: 1m
# Docker config
docker:
# Use environment variables to set up Docker connection?
# Uses Docker's default logic for the environment variables $DOCKER_HOST,
# $DOCKER_TLS_VERIFY, and $DOCKER_CERT_PATH.
# Environment variable: $RELAY_DOCKER_USE_ENV
# Default: false
use_env: false
# Location of Docker's Unix socket
# Environment variable: $RELAY_DOCKER_SOCKET_PATH
# MUST begin with unix:// or tcp://
# Default: unix:///var/run/docker.sock
socket_path: unix:///var/run/docker.sock
# Docker registry
# Environment variable: $RELAY_DOCKER_REGISTRY_HOST
# Default: index.docker.io
registry_host: index.docker.io
# Docker registry username
# Environment variable: $RELAY_DOCKER_REGISTRY_USER
# Default: none
# Required: No
registry_user: demouser
# Email address of Docker registry user
# Environment variable: RELAY_DOCKER_REGISTRY_EMAIL
# Default: none
# Required: No
registry_email: [email protected]
# Docker registry password
# Environment variable: $RELAY_DOCKER_REGISTRY_PASSWORD
# Default: none
# Required: No
registry_password: demouser
# Relay will clean up unused Docker resources on this
# interval. Valid time units are s (seconds),
# m (minutes), and h (hours).
# Environment variable: $RELAY_DOCKER_CLEAN_INTERVAL
# Default: 5m
clean_interval: 5m
# Per container memory allocation (in megabytes)
# Environment variable: $RELAY_DOCKER_CONTAINER_MEMORY
# Default: 16
container_memory: 16
# Version of the command interface driver to use.
# See http://github.com/operable/circuit for details.
# Default: 0.8
command_driver_version: latest
# Command execution
execution:
# Extra environment variables populated for all command
# invocations executed by this Relay. Variable names
# must not begin with COG_ or RELAY_.
# Environment variable: None
# Default: []
env: ["CAKE_IS_A_LIE=1"]