Configuration

In addition to command-line flags, Manael supports configuration via environment variables.

Environment variableEquivalent flagDescription
MANAEL_UPSTREAM_URL-upstream_urlURL of the upstream image server.
PORT-httpPort number to listen on (used as :<PORT>).
MANAEL_ENABLE_AVIFSet to true to enable AVIF conversion.
MANAEL_ENABLE_RESIZESet to true to enable on-the-fly image resizing via w, h, and fit query parameters.

The -upstream_url flag takes precedence over MANAEL_UPSTREAM_URL when both are provided.