## Service configuration
[log]
level = "info"
format = "text"

[server]
addr = "server:8080"

## Admin
[admin]
username = "admin"
password = "admin123"
email = "admin@memoh.local"

## Auth configuration
[auth]
jwt_secret = "YZq8kXrW5dFpNt9mLxQvHbRjKsMnOePw"
jwt_expires_in = "168h"

## Docker configuration
[containerd]
socket_path = "/run/containerd/containerd.sock"
namespace = "default"

[mcp]
# registry = "memoh.cn"  # Uncomment for China mainland mirror
image = "memohai/mcp:latest"
snapshotter = "overlayfs"
data_root = "/opt/memoh/data"

## Postgres configuration
[postgres]
host = "postgres"
port = 5432
user = "memoh"
password = "memoh123"
database = "memoh"
sslmode = "disable"

## Qdrant configuration
[qdrant]
base_url = "http://qdrant:6334"
api_key = ""
collection = "memory"
timeout_seconds = 10

## Agent Gateway
[agent_gateway]
host = "agent"
port = 8081
server_addr = "server:8080"

## Web
[web]
host = "127.0.0.1"
port = 8082
