Permalink
Fetching contributors…
Cannot retrieve contributors at this time
160 lines (134 sloc) 4.31 KB
# 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: demouser@demouser.org
# 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"]