Skip to content

Machine-translated – improvements welcome. Suggest an improvement

Setup as a file

What you put together in the setup wizard can be saved as a configuration file. From such a file you set up a new Ablago in a few seconds, for instance a second one for your parents or a new one after a move without a backup. IT service providers use it to hand over their own defaults.

Saving

In the wizard's summary, Save as file saves the file ablago-einrichtung.yaml to your download folder. It contains the database (host, port, name, user), the name of the Library, your account (name, email address), the use including your organisation, the workbench level, what Ablago may do, the packages including automations switched on and off, and the optional things (address, state, examples, email sending). Short comments explain every section.

Not in the file: passwords and key

The file contains no passwords and no key. The wizard asks for passwords when loading. Ablago creates the key anew with every setup, and the emergency sheet remains mandatory. If a file contains a password in plain text anyway, Ablago rejects it.

Loading

In the wizard, at the top right, small next to the help, there is Load from configuration file. This only works with a valid setup code and only as long as Ablago isn't set up yet. If you choose the file already on the step "Setup code", Ablago checks it as soon as the code is correct. Nothing is created when loading.

Ablago checks the file step by step:

  • Structure: against the schema. Errors are shown with line and field, for example "Line 5, konto.passwort: passwords don't belong in the file". Then nothing changes.
  • Database: without a database, the file prefills the step "Database"; you enter the password there. If Ablago is already connected, it stays with this connection, and a notice names the difference.
  • Content: email address of your account, address of Ablago.
  • Packages: do they exist in the catalogue? You always confirm permissions, origin, name conflicts and required settings yourself, even with a file.

If everything fits, it goes straight to the summary, which you confirm as usual with Set up now. If a step doesn't fit, the wizard shows exactly this step with the reason; the rest stays prefilled. Because passwords are never in the file, you usually land on the step "Your account" first.

JSON works too: valid JSON is valid YAML.

Example

The keys of the file are German; they stay the same in every language.

# Setup of Ablago – for loading in the setup wizard ("Load from configuration file").
# Without passwords and without a key: the wizard asks for passwords, Ablago always creates the key anew.
# Structure: https://help.ablago.app/admin/aktuell/en/einrichtungsdatei/ablago-einrichtung-1.schema.json

ablago-einrichtung: 1
# Connection to PostgreSQL (only applies as long as Ablago has no database yet).
datenbank:
  rechner: db
  port: 5432
  name: dms
  benutzer: dms
  passwort: ${DMS_DB_PASSWORT}
# Name of the Library – lettering in the header and browser tab.
ablage: Familie Beispiel
# Your account: sets up Ablago, may administer it and also works in the Library.
konto:
  name: Lena Beispiel
  email: lena@example.org
  passwort: ${DMS_KONTO_PASSWORT}
# Wofür Ablago genutzt wird: privat, beruflich oder beides.
nutzung: privat
# Workbench level: einsteiger, haushalt, selbstaendig, organisation or alles. If missing, the default for the use applies.
werkbank: einsteiger
# What Ablago may do: pakete (keine, vorlagen, lokal, netz) and selbst (nichts, vorschlag, alles). hoechstens is set by a provider.
darf:
  pakete: lokal
  selbst: vorschlag
# From the official catalogue, each in the newest matching version; automations: true = switched on.
pakete:
  - id: texterkennung
  - id: benachrichtigungen
# Address for links, state for public holidays, examples, email sending (without password).
optionales:
  adresse: https://ablago.example.org
  bundesland: SN
  beispiele: false
  Email:
    aktiv: true
    server: smtp.example.org
    port: 587
    verbindung: starttls
    benutzer: ablago@example.org
    absender: Ablago <ablago@example.org>
    selbstsigniert: false
    passwort: ${DMS_MAIL_PASSWORT}

Download the example file

  • konto is the person who sets up: they get "Full administration" and also work in the Library. You invite further people after the setup under Workbench → Users.
  • Without a list pakete Ablago chooses the packages in the wizard according to darf (see What may Ablago do?); pakete: [] means "none". The wizard does not take over a package above the answer in darf without asking.
  • optionales.beispiele: true means: start with an example Library. Examples per package (beispiele under pakete) count the same.
  • Older files are still loaded: the section administrator counts as konto. Ablago skips a section erster-benutzer with a notice – the first user no longer exists in the wizard. When saving, only konto is in the file.
  • nutzung is the answer to "What will you use Ablago for?": privat (home), beruflich (work) or beides (both) (Use). beruflich and beides set the attribute used for work. Without it, the wizard asks.
  • organisation only exists with beruflich and beides: name is required, plus optionally strasse, hausnummer, plz, ort, email and telefon. "Set up now" creates your own organisation from it; the package basis must then be in the list.
  • werkbank is the workbench level for the whole installation: einsteiger, haushalt, selbstaendig, organisation (Business) or alles. If missing, the default for the use applies as before (Self-employed for work, otherwise Beginner).
  • darf sets what Ablago may do: pakete (keine, vorlagen, lokal, netz) and selbst (nichts, vorschlag, alles). Anything missing takes the default lokal and vorschlag. With hoechstens, a provider sets maximum values: higher answers can then not be chosen in Ablago, and the server rejects them. Maximum values only come from the file, not from the workbench.
  • Older files don't know nutzung yet and set the attribute with optionales: beruflich: true. Ablago still reads this; the wizard then suggests "Both" in the "Use" step. If both are in the file, they must match.
  • A package's automations are keys with true (switched on) or false (off); if one is missing, it is switched on as in the wizard.

References instead of passwords

Instead of a password, a reference to an environment variable may be given, such as passwort: ${DMS_KONTO_PASSWORT}. It is intended for a later setup entirely without an interface. The wizard in the browser doesn't evaluate it and asks for the password anyway; when saving, the reference is kept.

Schema

The file follows a published JSON Schema, versioned via the header line ablago-einrichtung: 1:

ablago-einrichtung-1.schema.json

A new format version gets its own schema. Ablago rejects files with an unknown version instead of reading them halfway.