liuhaijun 3f5f28d785 add sheduling agent
Change-Id: I89f35fb3984044c57f10727432755012542f9fd8
2023-11-16 10:55:57 +00:00

61 lines
1.8 KiB
YAML

app:
app_env: ${APP_ENV||local}
debug: ${APP_DEBUG||true}
language: ${APP_LANGUAGE||zh_CN}
# base_path: ""
server:
host: ${SERVER_HOST||0.0.0.0}
port: ${SERVER_PORT||8898}
agent_version: ${AGENT_VERSION||v1.0.0}
zombie_cleaner: ${POSTGRES_DATA_ENABLE||true}
schedule:
port: ${SCHEDULE_PORT||9090}
heart_beat: 30
protocol: http
auth:
type: none
postgres:
data:
enable: ${POSTGRES_DATA_ENABLE||false}
host: ${POSTGRES_DATA_HOST||10.110.63.138}
port: ${POSTGRES_DATA_PORT||5432}
database: ${POSTGRES_DATA_DATABASE||postgres}
username: ${POSTGRES_DATA_USERNAME||postgres}
password: ${POSTGRES_DATA_PASSWORD||Mypostgres!23}
log_level: ${LOG_LEVEL||4}
auth:
enable: ${POSTGRES_AUTH_ENABLE||false}
host: ${POSTGRES_AUTH_HOST||10.110.63.138}
port: ${POSTGRES_AUTH_PORT||5432}
database: ${POSTGRES_AUTH_DATABASE||auth}
username: ${POSTGRES_AUTH_USERNAME||postgres}
password: ${POSTGRES_AUTH_PASSWORD||Mypostgres!23}
log_level: ${LOG_LEVEL||4}
redis:
enable: ${REDIS_ENABLE||false}
host: ${REDIS_HOST||127.0.0.1}
port: ${REDIS_POST||6379}
password: ${REDIS_PASSWORD||}
database: ${REDIS_DATABASE||0}
nats_config:
# 10.110.63.81:30529 192.168.12.110
url: ${NATS_URL||nats://10.110.63.81:30529}
user: ${NATS_USER||admin}
password: ${NATS_PASSWORD||T0pS3cr3tFGThjjds56}
logger:
default_division: ${LOGGER_DEFAULT_DIVISION||time}
file_name: ${LOGGER_FILE_NAME||cfn-schedule-agent.sys.log}
division_time:
max_age: ${LOGGER_DIVISION_TIME_MAX_AGE||15}
rotation_time: ${LOGGER_DIVISION_TIME_ROTATION_TIME||24}
division_size:
max_size: ${LOGGER_DIVISION_SIZE_MAX_SIZE||20}
max_backups: ${LOGGER_DIVISION_SIZE_MAX_BACKUPS||15}
max_age: ${LOGGER_DIVISION_SIZE_MAX_AGE||15}
compress: ${LOGGER_DIVISION_SIZE_COMPRESS||false}