clearml-server/server/config/default/apiserver.conf

119 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-06-10 21:24:35 +00:00
{
watch: false # Watch for changes (dev only)
debug: false # Debug mode
pretty_json: false # prettify json response
return_stack: true # return stack trace on error
log_calls: true # Log API Calls
# if 'return_stack' is true and error contains a status code, return stack trace only for these status codes
# valid values are:
# - an integer number, specifying a status code
# - a tuple of (code, subcode or list of subcodes)
return_stack_on_code: [
[500, 0] # raise on internal server error with no subcode
]
listen {
ip : "0.0.0.0"
port: 8008
}
version {
required: false
default: 1.0
# if set then calls to endpoints with the version
# greater that the current max version will be rejected
check_max_version: false
2019-06-10 21:24:35 +00:00
}
mongo {
# controls whether FieldDoesNotExist exception will be raised for any extra attribute existing in stored data
# but not declared in a data model
strict: false
aggregate {
allow_disk_use: true
}
2019-06-10 21:24:35 +00:00
}
auth {
# verify user tokens
verify_user_tokens: false
# max token expiration timeout in seconds (1 year)
max_expiration_sec: 31536000
# default token expiration timeout in seconds (30 days)
default_expiration_sec: 2592000
# cookie containing auth token, for requests arriving from a web-browser
session_auth_cookie_name: "trains_token_basic"
2019-07-08 21:00:44 +00:00
# cookie configuration for authorization cookies generated by auth.login
cookies {
httponly: true # allow only http to access the cookies (no JS etc)
secure: false # not using HTTPS
domain: null # Limit to localhost is not supported
max_age: 99999999999
}
# # A list of fixed users
# fixed_users {
# enabled: true
# users: [
# {
# username: "john"
# password: "123456"
# name: "john doe"
# }
#
# ]
# }
2019-06-10 21:24:35 +00:00
}
cors {
origins: "*"
# Not supported when origins is "*"
supports_credentials: true
2019-06-10 21:24:35 +00:00
}
default_company: "d1bd92a3b039400cbafc60a7a5b1e52b"
workers {
# Auto-register unknown workers on status reports and other calls
auto_register: true
# Timeout in seconds on task status update. If exceeded
# then task can be stopped without communicating to the worker
task_update_timeout: 600
}
2019-10-28 19:49:16 +00:00
check_for_updates {
enabled: true
# Check for updates every 24 hours
check_interval_sec: 86400
url: "https://updates.trains.allegro.ai/updates"
component_name: "trains-server"
# GET request timeout
request_timeout_sec: 3.0
}
2019-12-14 21:33:04 +00:00
statistics {
# Note: statistics are sent ONLY if the user has actively opted-in
supported: true
url: "https://updates.trains.allegro.ai/stats"
report_interval_hours: 24
agent_relevant_threshold_days: 30
max_retries: 5
max_backoff_sec: 5
}
2019-06-10 21:24:35 +00:00
}