You could also install NixOS on all your headless servers and set it declaratively: https://search.nixos.org/options?channel=26.05&query=services.qbittorrent.serverConfig&type=options#show=option%253Aservices.qbittorrent.serverConfig
For instance:
{
LegalNotice.Accepted = true;
Preferences = {
WebUI = {
Username = "user";
Password_PBKDF2 = "generated ByteArray.";
};
"WebUI/Address" = "<url>";
General.Locale = "en";
};
}