# AtlasOS - Calypso API Configuration
# Copy this file to /etc/calypso/config.yaml and customize

server:
  port: 8080
  host: "0.0.0.0"
  read_timeout: 15s
  write_timeout: 15s
  idle_timeout: 60s

database:
  host: "localhost"
  port: 5432
  user: "calypso"
  password: ""  # Set via CALYPSO_DB_PASSWORD environment variable
  database: "calypso"
  ssl_mode: "disable"
  max_connections: 25
  max_idle_conns: 5
  conn_max_lifetime: 5m

auth:
  jwt_secret: ""  # Set via CALYPSO_JWT_SECRET environment variable (use strong random string)
  token_lifetime: 24h
  argon2:
    memory: 65536      # 64 MB
    iterations: 3
    parallelism: 4
    salt_length: 16
    key_length: 32

logging:
  level: "info"        # debug, info, warn, error
  format: "json"       # json or text

