LAUTI can be configured by setting environment variables on your server. The following lists all available variables with an explanation and if setting them is mandatory.

General

LAUTI_BASE_URL

Base url, used for linking to the frontend from the server.

Mandatory: yes

Example: https://example.com

LAUTI_SQLITE_DB

Path pointing to the sqlite database file.

Default: lauti.db

LAUTI_MEDIA_PATH

Path pointing to a directory, where all media files are uploaded to.

Mandatory: yes

Example: /var/lib/lauti/media

LAUTI_AUTH_KEY_PATH

Path pointing to the private key used by the auth service. It also expects a public key at {LAUTI_AUTH_KEY_PATH}.pub.

Default: auth-key

LAUTI_KILLSWITCH_HASHES

List of strings, that can be used to stop the LAUTI server with an http request.

Example: foo,bar

Admin

LAUTI_ADMIN_EMAIL

Admin email address, used to generate an admin user, if it does not exist.

Mandatory: yes

Example: admin@example.com

LAUTI_ADMIN_PASSWORD

Admin password, used to generate an admin user, if it does not exist.

Mandatory: yes

Example: suersecret

Theme

LAUTI_THEME

Select the active theme from the THEMES_PATH that will be used at startup. If this value is empty it will create a new default theme inheriting from the lauti theme. Note that this environment variable gets ignored after changing the active theme in the backstage.

Example: mytheme

LAUTI_THEMES_PATH

Path pointing to a directory, where the themes will be stored.

Default: themes/

Localization

LAUTI_TIMEZONE

Time zone used in LAUTI as defined by IANA.

Default: UTC

Example: Europe/Berlin

LAUTI_LOCALE

Default localization (date format etc…) as defined in https://github.com/goodsign/monday/blob/master/locale.go

Example: en_US

LAUTI_LANGUAGE (DEPRECATED)

Default langauge for the website. Replaced by LAUTI_LOCALE. Will only be used in case LAUTI_LOCALE is not defined. Will be removed with next major release.

Default: en

LAUTI_SEARCH_INDEX_PATH

Path pointing to the search database ( bleve index).

Default: index.bleve

LAUTI_SEARCH_TIMEOUT

Maximum duration for a search request.

Default: 10s

LAUTI_SEARCH_RESULT_CACHE_SIZE

Number of search results cached in memory.

Default: 100

LAUTI_SEARCH_BUCKET_CACHE_SIZE

Number of search buckets cached in memory.

Default: 100

Http

LAUTI_ADDR

Http listen address

Default: :3333

LAUTI_HTTP_READ_TIMEOUT

Http read timeout. For more information have a look at go net/http documentation.

Default: 5s

LAUTI_HTTP_WRITE_TIMEOUT

Http write timeout. For more information have a look at go net/http documentation.

Default: 5s

LAUTI_HTTP_HANDLER_TIMEOUT

Http handler timeout. For more information have a look at go net/http documentation.

Default: 5s

Mail

LAUTI_MAIL_SMTP_HOST

Host for the mail server including the port.

Example: mailserver.example.com:465

LAUTI_MAIL_SMTP_PASSWORD

Password for mail authentication.

Example: supersecure

LAUTI_MAIL_SMTP_USER

user for mail authentication.

Example: cooluser

LAUTI_MAIL_SMTP_SECURE

Either SSL or StartTLS.

Example: SSL

LAUTI_MAIL_ADDRESS

Mail address for sending mails from.

Example: mail@example.com

LAUTI_MAIL_ALLOW_LIST

Comma seperated list of email addresses. When set only those mail addresses will receive emails.

Example: foo@bar.com,bar@foo.com

Plausible

LAUTI_PLAUSIBLE_HOST

Host of the plausible server for analytics.

Example: https://plausible.io

LAUTI_PLAUSIBLE_DOMAIN

Domain for plausible analytics.

Example: https://plausible.io

Openstreetmap

LAUTI_OSM_TILE_SERVER

Open Street Map tile server.

Example: https://tile.openstreetmap.org/{z}/{x}/{y}.png

LAUTI_OSM_TILE_CACHE_DIR

Cache Directory for Open Street Map tiles.

Example: /var/lib/lauti/osm

Debug

LAUTI_LOG_LEVEL

Level of logs that gets logged possible values are debug, info, warn, error.

Default: info

LAUTI_DEBUG

Sets the log level to debug and adds a /debug endpoint for use with pprof.

Example: true