Skip to content
DezfilDocsv0.1.0

Configuration

Change your instance's settings in the app or with environment variables, and check which value is in effect.

You change a setting in one of two places:

WhereHowWhen it applies
Settings in the appSign in as an admin, open Settings and pick a tab under InstanceAt once, for new work
An environment variablePass it when the server startsAfter a restart

Docker

Terminal
docker run -d --name dezfil -p 127.0.0.1:3000:3000 -v dezfil-data:/data \
-e DEZFIL_UPLOAD_MAX_MB=10240 \
-e DEZFIL_QUERY_TIMEOUT_S=120 \
ghcr.io/dezfil/dezfil

A container keeps the image and the variables it was created with. To change a variable, first list them:

Terminal
docker inspect --format '{{println .Config.Image}}{{range .Config.Env}}{{println .}}{{end}}' dezfil

The first line is the image. If it names a version, as in ghcr.io/dezfil/dezfil:0.1.0, put that name at the end of the command, so the container keeps its version. The other lines hold the image’s own variables too, such as PATH and DEZFIL_DATA_DIR.

Run docker rm -f dezfil, then the command again with every variable you set, not only the new one, DEZFIL_SECRET_KEY too if you set one. The dezfil-data volume keeps your data.

Without DEZFIL_SECRET_KEY, the instance’s key is the secret.key file in its volume, once Dezfil has made one. To set the variable, print that key as Keep the key you have shows, and pass it as -e DEZFIL_SECRET_KEY=<64_HEX_CHARACTERS>. Storage and programs says what another key breaks.

  • DEZFIL_UPLOAD_MAX_MB raises the largest upload to 10,240 MB.
  • DEZFIL_QUERY_TIMEOUT_S gives each query up to 120 seconds.

You should see, in Settings > Limits, the Largest upload row locked with the line Set in the server’s environment by DEZFIL_UPLOAD_MAX_MB.

A provider key for the assistant is set the same way: see Set up the assistant. To build the image and run it the first time, see Install.

  1. A variable that is set and not empty wins. Its row in Settings is locked.
  2. Otherwise, the value an admin saved in Settings.
  3. Otherwise, the default.

A saved value stays saved while a variable overrides it. It applies again once you remove the variable and restart.

A number Dezfil cannot use still locks the row, and the default applies. The row then says, for example, DEZFIL_UPLOAD_MAX_MB in the server’s environment is not valid, so the default is used.

Some settings live in one place only. What new maps start with and who may publish are in Settings alone. The data folder, the encryption key and the assistant’s key are variables alone.

In Settings, choices save as you change them, and a typed number when you press Enter or leave the field. Other typed text waits for Save. Work already running keeps the value it started with.

Open Settings > System. The Server settings card lists every setting a variable can set, with its Value and Source: Environment, Default, or where an admin saved it.

API keys show only Set or Not set, and service addresses only their scheme and host.

The card also lists variables that set no instance setting: the platform’s own, such as PORT, and one the development setup uses. Development setup explains them.

Agents read the same values, as an admin, from GET /api/instance/settings. They change a setting with PATCH /api/instance/settings, under the Settings key its table names. A setting a variable locks answers 409 setting_locked. How the API works covers tokens and requests.

Every setting has one row, in the table of its area. A row gives the variable and the Settings key, the default with its unit, the values it takes, what it does and how a change applies.

TableWhat it coversWhere to change it
GeneralThe instance’s name, the sign-in message, the lost-password contact and the landing pageGeneral
Instance defaultsWhat new maps, layers, workflow canvases, SQL consoles and image exports start withMaps, Workflows & SQL, Publishing
Basemaps and imageryThe basemaps on offer, satellite imagery and the deployment’s own basemapLibraries, or a variable
Data and servicesThe address finder, travel time, OpenStreetMap, S3 storage, the template catalogue and hosts on your own networkData & services, or a variable
Security and rulesSign-in and link lifetimes, passwords, and who may create tokens, publish, embed, connect and importSecurity, Publishing, Data & services
Storage and programsThe data folder, the encryption key, the tile builder and the image rendererA variable
Set up the assistantThe provider keys, the models on offer and the assistant’s own budgetsA variable
Reverse proxy and HTTPSThe trusted proxies and the session cookie’s nameA variable
LimitsTime, size, memory, rate and queue limitsLimits, or a variable
  • Each person’s look, list layouts and sort orders are their own account preferences, kept with their account. They are not instance settings. Your settings shows where each is changed.
  • The model catalogue file, assistant-models.json in the data folder, adds models people can choose. See Offer other models.
  • Saved palettes and the basemap styles an admin adds are instance data, kept on the Libraries tab.
Dezfil · Apache-2.0docs from 7439201b