Skip to content

Updating from v4 to v5

Tinyauth v5 introduces only configuration changes.

In Tinyauth v4, the configuration was a mess - some options were not doing what they were supposed to do, they were hard to keep track of and generally not very intuitive. In Tinyauth v5, we’ve simplified the configuration format into one unified scheme across all configuration mediums.

Environment variables, now, follow the following format:

TINYAUTH_<SECTION>_<KEY>=<VALUE>

The TINYAUTH_ prefix is used to distinguish Tinyauth configuration from other environment variables. All environment variables that are prefixed with TINYAUTH_ are considered configuration options and in case of a mis-configuration, unlike previous versions, Tinyauth will refuse to start.

CLI flags follow the following format:

--section.key=value

This format may seem unintuitive at first, but it’s actually quite powerful and better than the previous delimiter-based format. It allows you to specify configuration options in a way that’s easy to remember and easy to type.

Since the entire configuration format has changed, you will need to update your entire configuration. To make this process easier, we’ve provided a configuration migrator that can help you migrate your CLI flags and environment variables to the new format.

TINYAUTH_SERVER_PORT=8080
--server.address=0.0.0.0