@ -8,6 +8,8 @@ to configure the database, or the HTTP interface for instance.'
Plume relies on some environment variables for some configuration options. You can either set them before
Plume relies on some environment variables for some configuration options. You can either set them before
starting the app with `cargo run` or write them in a `.env` file to have automatically loaded.
starting the app with `cargo run` or write them in a `.env` file to have automatically loaded.
## Basic
Here are the variables that Plume uses:
Here are the variables that Plume uses:
- `BASE_URL`: the domain name, or IP and port on which Plume is listening. It is used in all federation-related code.
- `BASE_URL`: the domain name, or IP and port on which Plume is listening. It is used in all federation-related code.
@ -23,6 +25,8 @@ meaning that all your users will get disconnected. You can generate one with `op
- `DB_MAX_SIZE`: the maximum number of database connections (`10` by default). Since 0.5.0.
- `DB_MAX_SIZE`: the maximum number of database connections (`10` by default). Since 0.5.0.
- `DB_MIN_IDLE`: the minimum idle database connection count (the same to `DB_MAX_SIZE` by default). Since 0.5.0.
- `DB_MIN_IDLE`: the minimum idle database connection count (the same to `DB_MAX_SIZE` by default). Since 0.5.0.
## Mail
The SMTP server to send mails can be configured with:
The SMTP server to send mails can be configured with:
- `MAIL_SERVER`: the SMTP server to connect to.
- `MAIL_SERVER`: the SMTP server to connect to.
@ -34,6 +38,8 @@ The SMTP server to send mails can be configured with:
For the moment, Plume only sends mail when you need to reset your password (and only from the web interface, `plm users reset-password` doesn't send anything).
For the moment, Plume only sends mail when you need to reset your password (and only from the web interface, `plm users reset-password` doesn't send anything).
If you don't plan to use this feature, you can simply remove (or comment) the lines to configure the mail server in your `.env`.
If you don't plan to use this feature, you can simply remove (or comment) the lines to configure the mail server in your `.env`.
## Logo
You can also change the logo you want to use for your instance in this file. Your logo should be in the `static` directory.
You can also change the logo you want to use for your instance in this file. Your logo should be in the `static` directory.
Note if you want to [use LDAP](../../environment/#ldap): you should still create an administrator account, at least to give admin rights to your own LDAP account once it's registered.
On **Windows**, there might be an error creating the admin user. To get around this, you need to run:
On **Windows**, there might be an error creating the admin user. To get around this, you need to run:
```
```
plm users new --admin -n "adminusername" -N "Human Readable Admin Name" -b "Biography of Admin here" -p hackmeplease
plm users new --admin -n "adminusername" -N "Human Readable Admin Name" -b "Biography of Admin here" -p hackmeplease