# Preferences

Preferences is the admin app for everything that belongs to the server as a whole: the ports it listens on, mail, certificates, logging, banning, plugins, and so on. Settings of a single user are in the User Manager.

![The Preferences app, with IP / Servers open](Prefs/preferences.png)

## Finding your way

| Part | What it is |
|---|---|
| **The app bar** (top) | switches between the admin apps: Files, Server Admin, Jobs, User Manager, Preferences, Shares, PGP, Reports. The version of the server is under the logo. |
| **Search every setting…** (top right, ⌘K or Ctrl+K) | finds a setting anywhere in Preferences, see below |
| **The sun or moon button** | switches between the light and the dark theme |
| **Your initials** | shows who is signed in, with **Logout** |
| **The sections** (left) | one entry per section. Click one to open its panel. The arrows above the list fold the list away. |
| **The status line** (above the panel) | the server's host name, who is signed in, and the time left before the session ends by itself |
| **The bottom bar** | **Reset To Default**, **Cancel** and **Save** for the open panel |

## The sections

| Section | Holds |
|---|---|
| [IP / Servers](Ports.md) | the ports the server listens on, one listener per port and protocol |
| [General Settings](Prefs-General.md) | the connection limit, the [mail server](Prefs-General-SMTP.md), the [bandwidth schedule](Prefs-General-Bandwidth.md), one-time codes, the password reset mail |
| [WebInterface](Prefs-WebInterface.md) | the logo, web sessions, [the login page](Prefs-WebInterface-Login-Studio.md), its [themes](Prefs-WebInterface-Login-Themes.md) and [languages](Prefs-WebInterface-Languages.md), [MiniURLs](Prefs-WebInterface-MiniURL.md), [the Proxy tab](Prefs-WebInterface-Proxy-Rules.md), [security headers](Prefs-WebInterface-CSP.md), [custom forms](Prefs-WebInterface-Custom-Forms.md) |
| [Email Templates](Prefs-Email-Templates.md) | the texts of the mails the server sends, and the [designer](Prefs-Email-Templates-Designer.md) for mails with a layout |
| [Restrictions](Prefs-Restrictions.md) | limits for the whole server: connection days, FTP rules, [file name filters](Prefs-Restrictions-Filename-Filters.md), blocked paths |
| [Replication / Clustering](Prefs-Replication.md) | keeping several servers the same |
| [Banning](Prefs-Banning.md) | addresses and [countries](Prefs-Banning-Countries.md) that may not connect, and when the server bans by itself |
| [Logging](Prefs-Logging.md) | the log file and how it is rolled, [where else the log goes](Prefs-Logging-Targets.md), [what is logged](Prefs-Logging-Events.md), metrics |
| [Encryption](Prefs-Encryption.md) | [certificates](Prefs-Encryption-SSL.md), [ciphers](Prefs-Encryption-Ciphers.md), [keystores](Prefs-Encryption-Keystore-Utility.md), [PGP keys](Prefs-Encryption-PGP.md), certificate pins, and [how passwords are stored](Prefs-Encryption-Passwords.md) |
| [Alerts](Prefs-Alerts.md) | what the server tells you about, and how: by mail, by a job, by [SNMP trap](Prefs-Alerts-SNMP.md) |
| [Folder Monitor](Prefs-Folder-Monitor.md) | folders the server watches, and what it does with what it finds |
| Tunnels | the tunnels users can be given |
| [User Config](Prefs-User-Config.md) | where users are kept: files or a database |
| [Search Config](Prefs-Search.md) | what a search looks at, and the index behind it |
| Sync Config | settings for synchronized folders |
| [Reporting](Prefs-Reporting.md) | what the reports record and where it is stored |
| [Preview](Prefs-Preview.md) | thumbnails and previews of files, made by a conversion tool |
| [Misc](Prefs-Misc.md) | settings that fit nowhere else, the key for country lookups, the levels of the low memory alerts, [the pattern tester](Prefs-Misc-Regex-Tester.md) |
| Updates | how the server updates itself |
| [Quota](Prefs-Quota.md) | how much users may store |
| [OIDC Server](Prefs-OIDC-Server.md) | the server as an OIDC issuer, so that cloud storage trusts it without a stored key |
| [Kerberos](Prefs-Kerberos.md) | the keytabs for single sign-on with Kerberos |
| [Plugins](Prefs-Plugins.md) | the plugins and their settings |
| [Access Roles](Prefs-Access.md) | the roles that say what an administrator may do |
| [API](Prefs-API.md) | the API's switches and who may call it; the API itself is under [the API](API.md) |
| [AI Assistant](Prefs-AI-Assistant.md) | the chat about your server, the AI service it uses, and its rules |

## Find a panel or setting

The box above the section list searches the names of all settings while you type. The list then shows only the sections with a match, each with the number of matches and the first few of them: the setting's name, its kind (checkbox, text, list, group, tab) and where on the panel it is. "… more on this panel" means there are more than fit; add a word to narrow the search. Click a match to open that panel at that setting.

![Searching the sections for "proxy"](Prefs/find.png)

## Search every setting

**Search every setting…** in the top bar (⌘K on a Mac, Ctrl+K elsewhere) opens a search over everything. Each result shows its full path, such as Preferences › Encryption › SSL, and its kind. Use ↑ and ↓ to move, Enter to go there, Esc to close.

![Searching every setting for "certificate"](Prefs/search-all.png)

## Saving

Nothing changes on the server until you press **Save**. The bar at the bottom belongs to the panel that is open:

| Button | What it does |
|---|---|
| **Save** | writes the panel's settings to the server. They apply at once unless the panel says a restart is needed. |
| **Cancel** | throws away what you changed since the last save, after asking "Are you sure you want to reject changes made so far?" |
| **Reset To Default** | fills the panel with the settings of a new server, after asking "Are you sure you want to restore default settings for …?". Nothing is written yet: look the panel over, then press **Save**, or **Cancel** to keep what you had. The Plugins panel cannot be reset. |

If you open another section, another app or close the page while a panel has unsaved changes, Preferences asks first: "If you navigate away, you will lose your unsaved changes."

## Light and dark

![The dark theme](Prefs/dark.png)

## Who may open Preferences

An administrator whose roles include the Preferences sections. Sections a role does not allow are not shown, and a role can allow reading a section without changing it.
