# FileDummy Sample YAML Configuration
# Application: Sample API Server

server:
  host: 0.0.0.0
  port: 3000
  workers: 4
  timeout: 30
  cors:
    enabled: true
    origins:
      - https://example.com
      - https://app.example.com
    methods: [GET, POST, PUT, DELETE, OPTIONS]
    headers: [Content-Type, Authorization]

database:
  driver: postgresql
  host: localhost
  port: 5432
  name: sample_db
  username: dbuser
  pool_size: 20
  timeout: 10
  ssl: false

redis:
  host: localhost
  port: 6379
  db: 0
  ttl: 3600

logging:
  level: info
  format: json
  outputs:
    - type: stdout
    - type: file
      path: /var/log/app/server.log
      max_size: 100MB
      max_files: 7

features:
  authentication: true
  rate_limiting: true
  caching: true
  swagger_ui: true
  metrics: false

auth:
  jwt_secret: ${JWT_SECRET}
  token_expiry: 24h
  refresh_expiry: 168h

deployment:
  replicas: 3
  strategy: rolling
  resources:
    requests:
      memory: 256Mi
      cpu: 250m
    limits:
      memory: 512Mi
      cpu: 500m
