My favourite licensing models for self-hosted software are perpetual fallback licenses. Jetbrains does this well and their description of it is:
A perpetual fallback license is a license that allows you to use a specific version of software without an active subscription for it. The license also includes all bugfix updates, more specifically in X.Y.Z version all Z releases are included.