Skip to content

Commands ​

install.sh ​

sh
curl -fsSL https://get.newiq.pl/mintrix | sudo sh -s -- [options]
OptionMeaning
--version VERSIONInstall this version instead of the script's own
--dir DIRInstallation folder (default /opt/mintrix)
--license KEYLicence key, from your client area: activates this server. Needed the first time, or to activate again
--domain DOMAINDomain the licence is for, where users open Mintrix (not an IP)
--port PORTHTTP port (default 80)
--https-port PORTHTTPS port (default 443, or 8443 when 443 is taken)
--cloudflareCloudflare is in front: Mintrix sees each visitor's own IP address
--without-ministraMintrix only, for a Ministra that runs elsewhere; kept for later runs. --with-ministra adds the Ministra again
--ministra-port PORTPort of Ministra's admin panel (default 8088)
--httpUsers open http://DOMAIN (default https://)
--yesAsk nothing; use the options and defaults

The licence key is used once, to activate this server for the domain; it is not kept. Later runs and updates use the activation (runtime/licence.json).

mintrix-update ​

The same options as the installer:

sh
sudo mintrix-update                                       # newest release
sudo mintrix-update --version 1.2.3                       # a given version, also to go back
sudo mintrix-update --port 8080 --https-port 8443         # change ports
sudo mintrix-update --license <key> --domain <domain>     # activate again, or move to another domain

Administrator accounts ​

sh
cd /opt/mintrix
sudo docker compose exec app php artisan mintrix:create-admin          # another administrator
sudo docker compose exec app php artisan mintrix:2fa-reset <email>     # reset two-factor authentication

Licence ​

sh
cd /opt/mintrix
sudo docker compose exec -u www-data app php artisan mintrix:status            # the licence and lease
sudo docker compose exec -u www-data app php artisan mintrix:status --force    # renew now, e.g. after a plan change

As www-data, the app's user, so Mintrix can still read the licence file the command writes.

See Licence and devices.

Backups ​

sh
cd /opt/mintrix
sudo docker compose exec app php artisan mintrix:backup     # make a backup now
sudo docker compose exec app php artisan mintrix:restore    # restore one (a copy of the current database is made first)

See Backups.

Status and logs ​

sh
cd /opt/mintrix
sudo docker compose ps               # are all services running?
sudo docker compose logs -f app      # application
sudo docker compose logs nginx       # web server and certificate warnings

Integrated media software