Optional
'strict' (default) — throw if TLS is not configured. 'warn' — log a warning but continue. 'off' — disable enforcement entirely.
If true, skip enforcement for localhost / 127.0.0.1 / ::1 connections. Useful for local development without a dev certificate. Default: false.
Custom logger. Defaults to console.warn.
'strict' (default) — throw if TLS is not configured. 'warn' — log a warning but continue. 'off' — disable enforcement entirely.