# HTTP Server Default Values
# Common defaults for HTTP server settings across all services

let server_schema = import "../../schemas/common/server.ncl" in

{
  server | server_schema.ServerConfig = {
    # Local binding by default (security-first)
    host = "127.0.0.1",

    # Default to unprivileged port (actual port set per service)
    port = 8080,

    # Reasonable default worker count (can be overridden by mode)
    workers = 4,

    # Standard HTTP keep-alive
    keep_alive = 75,

    # Reasonable connection limit
    max_connections = 100,

    # Request timeout: 30 seconds
    request_timeout = 30000,

    # Enable graceful shutdown by default
    graceful_shutdown = true,

    # Graceful shutdown timeout: 30 seconds
    shutdown_timeout = 30,
  },
}
