Maintenance tasks¶
Installation¶
Generates new configuration files.
Warning
This command generates configuration for your Mobilizon instance and should be run only once when installing.
If any options are left unspecified, you will be prompted interactively.
sudo -u mobilizon ./bin/mobilizon_ctl instance gen [<options>]
You shouldn't need to run this task on Docker.
mix mobilizon.instance gen [<options>]
Options¶
-f,--forceWhether to erase existing files-o,--output PATHThe path to output the config file. Defaults toconfig/runtime.exs.--output-psql PATHThe path to output the SQL script. Defaults tosetup_db.psql.--domain DOMAINThe instance's domain--instance-name INSTANCE_NAMEThe instance's name--admin-email ADMIN_EMAILThe administrator's email--dbhost HOSTNAMEThe database hostname of the PostgreSQL database to use--dbname DBNAMEThe name of the database to use--dbuser DBUSERThe database user (aka role) to use for the database connection--dbpass DBPASSThe database user's password to use for the database connection--dbport DBPORTThe database port--listen-port PORTThe port the app should listen to, defaults to 4000
Detect spam in existing content¶
Added in Mobilizon 3.1.0
Detect spam based on user and profile data (only profile if remote) as well as events.
sudo -u mobilizon ./bin/mobilizon_ctl maintenance.detectspam [<options>]
docker compose exec mobilizon mobilizon_ctl maintenance.detectspam [<options>]
mix mobilizon.maintenance.detect_spam [<options>]
Options¶
-d,--dry_runOnly list detected spam, don't create reports-v,--verboseVerbose output-l,--local_onlyOnly look at local content. Recommended.-f,--forward_reportsForward reports from remote content to remote instances. Use with caution, as the spam detection system can report a lot of false positives.
Last update: August 11, 2023