Files
poseidon/configuration.example.yaml
2022-02-28 14:54:40 +01:00

69 lines
2.6 KiB
YAML

# Configuration of the Poseidon webserver
server:
# Address or hostname on which the webserver listens
# If a hostname is specified, the server might listen on only one of the resolved IPv4 or IPv6 addresses
address: 127.0.0.1
# Port on which the webserver listens
port: 7200
# If set, this token is required in the `Poseidon-Token` header for each route except /health
token: SECRET
# Configuration of TLS between the web client and Poseidon.
tls:
# If set, the API uses TLS for all incoming connections.
active: true
# The path to the certificate file used for TLS
certfile: ./poseidon.crt
# The path to the key file used for TLS
keyfile: ./poseidon.key
# If true, an additional WebSocket connection will be opened to split stdout and stderr when executing interactively
interactiveStderr: true
# If set, the file at the given path overwrites the default Nomad job file in internal/environment/template-environment-job.hcl
templateJobFile: ./poseidon.hcl
# Configuration of the used Nomad cluster
nomad:
# Specifies whether Nomad should be used as executor.
enabled: true
# IP address / domain of the Nomad server
address: 127.0.0.1
# Port of the Nomad server
port: 4646
# Authenticate requests to the Nomad server with this token
token: SECRET
# Configuration of TLS between the Poseidon and Nomad.
tls:
# Specifies whether to use TLS when communicating with the Nomad server.
active: false
# The path to the certificate of the CA authority of the Nomad host.
cafile: ./ca.crt
# The path to the client certificate file used for TLS
certfile: ./poseidon.crt
# The path to the client key file used for TLS
keyfile: ./poseidon.key
# Nomad namespace to use. If unset, 'default' is used
namespace: poseidon
aws:
# Specifies whether AWS should be used as executor.
enabled: false
# The enpoint of the WebSocket API
endpoint: wss://abcdef1234.execute-api.eu-central-1.amazonaws.com/production
# Currently, only static AWS environments are supported. You can list them here separated by spaces.
functions: "java11Exec go118Exec"
# Configuration of the logger
logger:
# Log level that is used after reading the config (INFO until then)
level: DEBUG
# Configuration of the sentry logging
sentry:
# The DSN of the sentry endpoint to use.
# If the DSN is not set, the client is effectively disabled.
dsn: https://example.io
# The environment to be sent with events.
# environment: staging
# This release information is used by Poseidon to provide the version route.
# Normally it is set by the deployment process.
# release: this is replaced in the deployment process