Bare Metal Configuration (optional)
Locate your MySQL credentials. You can get them with the following command.
sudo cat /etc/mysql/debian.cnf
Docker Configuration (optional)
Nothing specific has to be done, except what has been done in Installation steps already.
Just prepare your MYSQL user/password and storage location for the next steps.
Common Configuration
Edit your configuration file (under /your_root/src/config.php), as explained below.
From the Installation steps, fill in the following information:
- The database name in sections “db/signatures” and “db/usercake”
- The database credentials (see above) in sections “db/signatures” and “db/usercake”.
- The database host in sections “db/signatures” and “db/usercake”. NOTE: For docker it must be the name of the mysql container (“db” in our template).
- The storage paths in section “tests/storage” and “modules/localstorage/storage” (or configure owncloud if you planned to use it).
- The public url in section “urls/baseUrl”. Example: “http://localhost” (locally), “https://my.mrf.example.com/”
Then, change the config file according to your needs (see below)
Modules
Most modules are not documented, it’s not advised to change their configuration. Only a few can be tweaked:
Owncloud
- Enable the module with section “owncloud/enabled” = True
- Put your owncloud url in section “owncloud/url” (see documentation for Owncloud)
- Create a storage folder in your owncloud instance, and put its path into section “owncloud/storage” (example, “MyFolder”)
- Create a shared link for this storage location, and put in section “owncloud/download_url”. This will be used for downloads.
- Put your owncloud API credentials into “owncloud/account” and “owncloud/token” sections. It’s better to create an API key than using passwords.
- Don’t forget to re-run the installation script if needed after changing this
MRF
- Enable the module with section “mrf/enabled” = True
- Put your MRF url into section “mrf/base_url”
- Put your MRF API key into section “mrf/api_key”
- Don’t forget to re-run the installation script if needed after changing this
Please find below a configuration file template with pre-configured options.
Don’t hesitate to use it as a starting point.