Skip to main content

Mbin first setup

tip

If you are running docker, then you have to prefix the following commands with docker compose exec php.

Create new admin user (without email verification). Please change the username, email and password below:

php bin/console mbin:user:create <username> <email@example.com> <password>
php bin/console mbin:user:admin <username>
php bin/console mbin:ap:keys:update

Next, log in and create a magazine named random to which unclassified content from the fediverse will flow.

info

Creating a random magazine is a requirement to getting microblog posts that don't fall under an existing magazine.

php bin/console mbin:magazine:create random

Manual user activation

If you need to activate a user account manually (bypassing email verification) run the following command. Please change the username below:

php bin/console mbin:user:verify <username> -a

Setup of search language

If you want your instance to use a language different from English for indexing content for the search, then you need to adjust the MBIN_SEARCH_LANGUAGE environment variable in the .env file.

After changing the setting, the server needs to be restarted and also the following command to be run:

php bin/console mbin:db:migrate-search-lang

To see which languages are supported by your database, run the following SQL query:

SELECT cfgname FROM pg_ts_config;

Mercure

If you are not going to use Mercure, you have to disable it in the admin panel.

NPM (bare metal only)

cd /var/www/mbin
npm install # Installs all NPM dependencies
npm run build # Builds frontend

Make sure you have substituted all the passwords and configured the basic services.

Push Notification setup

The push notification system needs encryption keys to work. They have to be generated only once, by running

php bin/console mbin:push:keys:update