2018-03-22 12:48:22 +01:00
|
|
|
---
|
|
|
|
#Protocol used to serve
|
|
|
|
protocol: "http"
|
|
|
|
|
|
|
|
#Config certification if use 'https' protocol
|
|
|
|
#https_config:
|
|
|
|
# cert: "server.crt"
|
|
|
|
# key: "server.key"
|
|
|
|
|
|
|
|
#Server listening port
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
#Worker pool
|
|
|
|
worker_pool:
|
2018-04-11 11:12:09 +02:00
|
|
|
#Worker concurrency
|
2018-04-12 10:17:57 +02:00
|
|
|
workers: $max_job_workers
|
2018-03-22 12:48:22 +01:00
|
|
|
backend: "redis"
|
|
|
|
#Additional config if use 'redis' backend
|
|
|
|
redis_pool:
|
2018-04-12 10:17:57 +02:00
|
|
|
#redis://[arbitrary_username:password@]ipaddress:port/database_index
|
|
|
|
#or ipaddress:port[,weight,password,database_index]
|
|
|
|
redis_url: $redis_url
|
2018-03-30 07:22:10 +02:00
|
|
|
namespace: "harbor_job_service_namespace"
|
2018-03-22 12:48:22 +01:00
|
|
|
#Logger for job
|
2018-03-26 12:07:21 +02:00
|
|
|
logger:
|
|
|
|
path: "/var/log/jobs"
|
|
|
|
level: "INFO"
|
|
|
|
archive_period: 14 #days
|
|
|
|
#Admin server endpoint
|
|
|
|
admin_server: "http://adminserver:8080/"
|