-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathserver_config.yaml
More file actions
73 lines (62 loc) · 1.84 KB
/
server_config.yaml
File metadata and controls
73 lines (62 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Miloco Server Configuration
# Unified management of all server configuration items
# Directory path configuration
# Storage directory can be overridden by environment variable MILOCO_SERVER_STORAGE_DIR
# Default to relative path for portability
directories:
templates: "templates"
static: "static"
storage: ".temp" # Can be overridden by MILOCO_SERVER_STORAGE_DIR env var
# Database configuration
database:
path: "miloco.db"
timeout: 30.0
check_same_thread: false
isolation_level: null
# Server configuration
server:
host: "0.0.0.0"
port: 8000
log_level: "info"
enable_console_logging: true
enable_file_logging: true
# Application information configuration
app:
title: "Miloco server"
service_name: "miloco-server"
description: "Miloco server, responsible for scheduling various modules"
version: "0.0.1"
# JWT authentication configuration
jwt:
secret_key: "your-super-secret-key-change-this" # Get from environment variable SECRET_KEY, default to this value
algorithm: "HS256"
access_token_expire_minutes: 1440 #minutes
# Local model configuration
local_model:
host: "0.0.0.0"
port: 8001
# Chat configuration
chat:
agent_max_steps: 10
vision_use_img_count: 6
chat_history_ttl: 30 #days
# Trigger rule runner configuration
trigger_rule_runner:
interval_seconds: 2
vision_use_img_count: 3
trigger_rule_log_ttl: 30 #days
# Deside the model request timeout seconds in trigger rule decition making
# If it always ERROR as timeout, please change your model API provider to a faster one
request_timeout_seconds: 30
# Camera configuration
camera:
frame_interval: 1000 # Unit: Millisecond (ms)
# MIoT configuration, default to 'cn', use your MiHome cloud server
# 'cn': '中国大陆'
# 'de': 'Europe'
# 'i2': 'India'
# 'ru': 'Russia'
# 'sg': 'Singapore'
# 'us': 'United States
miot:
cloud_server: "cn"