Update configuration examples for seamless start

This commit is contained in:
Sebastian Serth
2023-02-15 19:18:05 +01:00
parent 0e4cd91ef7
commit 359539ffd7
5 changed files with 13 additions and 9 deletions

View File

@ -41,18 +41,18 @@ default: &default
# When enabled, CodeOcean delegates the handling and management of (containerized) runners # When enabled, CodeOcean delegates the handling and management of (containerized) runners
# to a dedicated runner management. Otherwise, code executions are performed locally using # to a dedicated runner management. Otherwise, code executions are performed locally using
# Docker and without pre-warming support (one container per execution). # Docker and without pre-warming support (one container per execution).
enabled: false enabled: true
# The strategy to use. Possible values are: poseidon, docker_container_pool # The strategy to use. Possible values are: poseidon, docker_container_pool
strategy: poseidon strategy: poseidon
# The root URL of the runner management to use (include any API prefix if required) # The root URL of the runner management to use (include any API prefix if required)
# If a hostname is specified and the target host is reachable via IPv6, the WebSocket # If a hostname is specified and the target host is reachable via IPv6, the WebSocket
# connection might not use the IPv6-to-IPv4 fallback but rather fail unexpectedly. # connection might not use the IPv6-to-IPv4 fallback but rather fail unexpectedly.
url: https://runners.example.org/api/v1 url: http://127.0.0.1:7200/api/v1
# The root certificate authority to trust for TLS connections to the runner management (Poseidon only) # The root certificate authority to trust for TLS connections to the runner management (Poseidon only)
ca_file: /example/certificates/ca.crt # ca_file: /example/certificates/ca.crt
# The authorization token for connections to the runner management (Poseidon only) # The authorization token for connections to the runner management (Poseidon only)
# If TLS support is not enabled, this token is transmitted in clear text! # If TLS support is not enabled, this token is transmitted in clear text!
token: SECRET # token: SECRET
# The maximum time in seconds a runner may idle at the runner management before it is removed. # The maximum time in seconds a runner may idle at the runner management before it is removed.
# Each begin of an interaction with the runner resets this time. Thus, this value should # Each begin of an interaction with the runner resets this time. Thus, this value should
# be truly greater than any permitted execution time of an execution environment. # be truly greater than any permitted execution time of an execution environment.

View File

@ -13,6 +13,8 @@ default: &default
# See https://bugs.webkit.org/show_bug.cgi?id=235873 # See https://bugs.webkit.org/show_bug.cgi?id=235873
connect_src: connect_src:
- wss://codeocean.openhpi.de - wss://codeocean.openhpi.de
# Enable the StackExchange API for Flowr
# - https://api.stackexchange.com
# Optionally: Specify a custom, non-Sentry URL for reporting CSP violations # Optionally: Specify a custom, non-Sentry URL for reporting CSP violations
# report_uri: https://example.com/csp-report # report_uri: https://example.com/csp-report

View File

@ -1,10 +1,10 @@
default: &default default: &default
adapter: postgresql adapter: postgresql
encoding: unicode encoding: unicode
password: CHANGE_ME
pool: 16 pool: 16
username: postgres # username: CHANGE_ME
host: localhost # password: CHANGE_ME
# host: localhost
development: development:
<<: *default <<: *default

View File

@ -1,4 +1,5 @@
#Why erb? # This file is only used for the deprecated DockerContainerPool (and not for Poseidon).
default: &default default: &default
connection_timeout: 3 connection_timeout: 3
pool: pool:

View File

@ -1,4 +1,5 @@
#Why erb? # This file is only used for the deprecated DockerContainerPool (and not for Poseidon).
default: &default default: &default
# Specify the Docker host below, once for container management and once for output streaming. # Specify the Docker host below, once for container management and once for output streaming.
# Always use the TCP socket (instead of a unix socket) and an IPv4 address for best compatibility. # Always use the TCP socket (instead of a unix socket) and an IPv4 address for best compatibility.