Skip to content

Settings (.env) ​

The settings are in /opt/mintrix/.env; the comments there explain each one. After a change, apply it with:

sh
sudo mintrix-update --version <running version>

Keep .env private

It holds the encryption key and database passwords. Back it up with your database: a backup is only usable with the same APP_KEY.

Version and images ​

SettingMeaning
MINTRIX_VERSIONVersion to run; set by the installer and mintrix-update
MINTRIX_APP_IMAGE, MINTRIX_WEB_IMAGEThe Mintrix images, by digest; set with the version

Licence ​

SettingMeaning
MINTRIX_DOMAINThe domain the licence is for, where users open Mintrix (not an IP address). To move to another domain, move the licence in your client area, then run sudo mintrix-update --license <key> --domain <new domain>

The licence key is not in .env: it is used once, to activate the server. See Licence and devices.

Application ​

SettingMeaning
APP_URLAddress users open Mintrix at (used in emails and links); set from the domain
APP_KEYEncryption key for sessions, two-factor secrets and stored settings. Generated once: never change or lose it

Database ​

SettingMeaning
DB_DATABASE, DB_USERNAMEDatabase name and user (mintrix)
DB_PASSWORD, DB_ROOT_PASSWORDFixed when the database is first created; changing them later does not change the existing database

Ports ​

Apply in /opt/mintrix with sudo docker compose up -d.

SettingDefaultMeaning
MINTRIX_HTTP_PORT80HTTP port
MINTRIX_HTTPS_PORT443HTTPS port
MINTRIX_HTTP_BIND, MINTRIX_HTTPS_BINDemptyWhere each port is reachable from: empty for every address (IPv4 and IPv6), 127.0.0.1 for this machine only, or one of the server's addresses
MINTRIX_HTTPS_REDIRECToffon redirects plain HTTP to HTTPS. Leave off behind Cloudflare: it does that itself
MINTRIX_TRUSTED_PROXIESemptycloudflare, your proxy's addresses (e.g. 10.0.0.5,192.168.1.0/24), or empty for no proxy

See Domain and HTTPS.

Ministra ​

For the Ministra installed beside Mintrix (see Ministra with Mintrix).

SettingDefaultMeaning
COMPOSE_PROFILESministraEmpty for Mintrix only (--without-ministra)
MINISTRA_IMAGE, MINISTRA_VERSIONThe Ministra release that runs: set by the installer and by Ministra's updates (Settings > Ministra > Update). Mintrix updates keep them
MINISTRA_DB_PASSWORD, MINISTRA_DB_ROOT_PASSWORDMinistra's database, made by the installer
MINISTRA_API_LOGIN, MINISTRA_API_PASSWORDmintrixMinistra's REST API login, which Mintrix uses
MINISTRA_INBOUND_KEYThe key Ministra sends its change notifications to Mintrix with
MINISTRA_SERVER_URLhttp://ministra:88Ministra's address for Mintrix, on the first start only; then Settings > Ministra
MINISTRA_HTTP_PORT, MINISTRA_HTTP_BIND8088, emptyMinistra's own admin panel; 127.0.0.1 keeps it to this server
MINTRIX_PORTAL_UPSTREAMemptyThe box portal: empty uses the Ministra of Settings > Ministra; off for none; or another address for box traffic

Email ​

For password resets and notifications, from your mail provider.

SettingDefaultMeaning
MAIL_MAILERsmtp
MAIL_HOST, MAIL_PORT587SMTP server
MAIL_USERNAME, MAIL_PASSWORDSMTP login
MAIL_SCHEMEemptyEmpty for STARTTLS on 587; smtps for port 465
MAIL_FROM_ADDRESS, MAIL_FROM_NAMEMintrixSender

Access ​

SettingMeaning
IP_WHITELISTComma-separated IP addresses or ranges (e.g. 203.0.113.7, 10.0.0.0/8) administrators may use Mintrix from: signing in and every action after it. Empty allows all
COMPOSE_PROJECT_NAMEOnly for a second installation on the same machine: keeps its containers and database separate (it also needs other ports)

Integrated media software