Skip to main content

Managed configuration

Set or lock settings from a JSON file in /config, so a deployment starts with known values that the web interface can't change.

Why Use Managed Configuration?

  1. Applies starting values to a new installation, so it begins with your preferred settings.
  2. Marks values as read-only in the web interface, so the policy lives in one file.
  3. Uses the same validation as the web interface, so an invalid value stops startup instead of being ignored.
  4. Keeps your saved values underneath a lock, so removing the lock brings them back.

File Location and Format

The managed configuration file lives at /config/managed.json, and the control plane, which runs as PUID, must be able to read it. A file owned by PUID works.

/config/managed.json
json
{
  "version": 1,
  "settings": {
    "transmission.downloadQueueSize": {
      "mode": "seed",
      "value": 3
    },
    "transmission.downloadQueueEnabled": {
      "mode": "lock",
      "value": true
    }
  }
}
  • version — Must be 1.
  • settings — Maps registered keys from the Settings reference to an entry with a mode and a value.
  • mode — Either seed or lock.
  • value — A JSON value of the setting's type, such as a number, true or false, a string, or a list of strings.

The file holds settings only, so VPN credentials, other secrets, and notification destinations can't go in it.

Seeds and Locks

ModeEffect
seedWrites the value once, when nothing is saved for that setting yet. The settings API reports the source managed-seed until someone changes it in the web interface.
lockOverrides the saved value while the file contains it. The row shows Locked and a read-only control, and the settings API reports the source managed-lock.

Precedence

  1. A lock wins over everything else.
  2. Without a lock, a saved value is used, whether it came from the web interface or a seed.
  3. Without a saved value, the built-in default is used.

Validation and Startup

The container reads the file at every start, so changes to it apply at the next start:

bash
docker compose restart app

The container stops during startup when the file:

  • Can't be read, or isn't valid JSON.
  • Has unknown fields or extra data after the JSON object.
  • Uses a version other than 1.
  • Uses a mode other than seed or lock.
  • Names an unknown setting, or holds a value the setting doesn't allow.

The reason appears in the error field of the control API stopped log line, such as unsupported managed configuration version: 2 or setting transmission.downloadQueueSize: must be between 1 and 1000.

Removing a Lock

  1. Delete the setting's entry from the file, or delete the whole file.
  2. Restart the container.

The value you saved earlier comes back, or the built-in default when nothing was saved.

Limits

  • Version 1 only — The file format has a single version.
  • Settings only — Secrets can't be managed through the file.
  • Default profile folder — transmission.downloadDirectory seeds or locks the Default profile's Download folder. A lock makes that field read-only in the profile editor, and an unlocked value applies without a Transmission restart.
  • Other profile fields — Labels, paused state, seeding, speed limits, priority, peer limit, and queue position belong to the profile record rather than the settings registry, so managed.json can't seed or lock them.
  • VPN connection details — Each connection stores its provider, tunnel, endpoints, DNS, retry interval, and peer port outside the settings registry, so managed.json can't seed or lock them.
  • Remote apps switch — A true seed or lock for rpc.compatibilityEnabled requires at least one VPN connection, but it does not require an RPC login. Without a VPN connection, startup stops; with no logins, the proxy accepts no sign-ins. A lock also makes the RPC proxy switch fail with A changed setting is locked by managed configuration.