Search the docs
Menu
Updated Edit on GitHub

Configuration files

Copy as Markdown

Configuration files edits the server's configuration files in the browser, so you can change a setting without a shell on the machine. Open Server, then Configuration files; it is under Show 2 more in the sidebar. You need the Change server settings permission.

The Configuration files page with the list of files on the left and the editor on the right, full size

The files hold secrets such as API keys, database passwords and the session secret, and a wrong line can stop the server from starting. The page warns about that above the list.

The files

The list shows the files in three groups:

  • Files the console can change, first those that exist, then those it can create. A file that doesn't exist yet says "Not created yet. Saving creates it."
  • Files it can only show, with "Read only. The console can show it but not change it."
  • Not on this server, folded at the end: files this install doesn't have and the console can't create.
File What it is When a change takes effect
Console environment (.env) The env file of a Linux or Windows install, see Configuration After a restart
Console overrides (.env.local) Listed for installs of older versions. The server doesn't read this file, so put settings in the env file instead
Console session secret (.session_secret) The secret that signs the sign-in cookie, when SESSION_SECRET is not set After a restart
Server blocklist (blocklist.txt) Addresses and device IDs the server refuses, see Hardening After a restart
Server audit log (audit.jsonl) The server's own audit entries, read only
Console service (systemd), Server service (systemd) The systemd units of a Linux install After systemctl daemon-reload and a restart of the service
NeoDesk Companion build environment (/etc/neodesk/build.env) Settings for the console's own Companion builds, on Linux At once

Edit a file

  1. Click the file in the list. The editor shows its content, its size and when it changed. Files up to 512 kB open; binary files don't.
  2. Change the text.
  3. Click Save file and confirm. The console writes the file at once and keeps a copy of the previous version next to it, as <file>.bak.<time>. It keeps the five newest copies of each file.

The line under the editor says when the change takes effect. When the file needs a restart, the console asks right after saving: Restart services restarts NeoDesk and waits until it is back, Cancel and restore puts the previous file back, and Keep the saved values leaves the file saved for a restart later. Open sessions drop for a moment during the restart, and you sign in again afterwards. Restart… under the editor asks the same question again for a file you saved before.

Leaving the page with unsaved changes asks whether to discard them. Saving is recorded in the audit log.

What the console refuses

  • A session secret shorter than 32 characters or with spaces in it. An empty or short secret would stop the console at its next restart.
  • A change to the settings that are set on the server's host only, in the env files: the release keys and signing switches, the build command of custom clients and the secrets such as SESSION_SECRET. The console answers that the save would change a key that is set on the server itself only. See Hardening, and change those in the file on the server.
  • The server audit log, which the server writes itself.
  • A file the console process may not write. Change it on the server instead.

Type to search pages, sections, commands and settings.