port

Validate port values.

Usage

An integer from 0 through 65535.

[env.PORT]
type = "port"

Validation leaves the value as a string. Storage defaults to "any" and redaction is off. Set storage = "encrypted" and redacted = true for secrets.

Use min and max to narrow the allowed range.