Adds mail settings envs

This commit is contained in:
Christian Beutel
2025-04-15 20:24:18 +02:00
parent 8fc10baaf1
commit 5d4a676a38
5 changed files with 53 additions and 9 deletions

View File

@@ -25,6 +25,13 @@ Since we use an unmodified installation of meilisearch you can use all variables
| ----------------------------- | ----------------------------------------------------------------------------------- | --------- |
| POCKETBASE_ENCRYPTION_KEY | Valid 32 character AES key. Used to encrypt secrets | |
| POCKETBASE_CRON_SYNC_SCHEDULE | Valid cron expression. Sets how often trails are synced from 3rd party integrations | 0 2 * * * |
| POCKETBASE_SMTP_ENABLED | Enables or disables SMTP functionality. Accepted values are true or false | false |
| POCKETBASE_SMTP_SENDER_ADRESS | The email address used as the "From" address in outgoing emails | |
| POCKETBASE_SMTP_SENDER_NAME | The display name shown as the sender in outgoing emails | |
| POCKETBASE_SMTP_HOST | The hostname or IP address of the SMTP server | |
| POCKETBASE_SMTP_PORT | The port number used to connect to the SMTP server | |
| POCKETBASE_SMTP_USERNAME | The username used to authenticate with the SMTP server | |
| POCKETBASE_SMTP_PASSWORD | The password used to authenticate with the SMTP server | |
## Frontend

View File

@@ -76,5 +76,7 @@ To set up password reset emails you will need to access the PocketBase backend.
Next in the pocketbase admin panel go to Settings -> Mail settings an enable "Use SMTP mail server". Enter the details of your SMTP server and send a test email to ensure your configuration is correct. On the same page you can also adjust the email template of the password reset email.
Alternatively, you can set these options via the respective [environment variables](/getting-started/configuration/#pocketbase).
### Request password reset
Once the SMTP access is configured users can click the "Forgot password" link in the login form. After requesting the reset the user will receive an email with a unique link to reset their password.
Once the SMTP access is configured, users can click the "Forgot password" link in the login form. After requesting the reset the user will receive an email with a unique link to reset their password.

View File

@@ -12,7 +12,7 @@ To create backend access navigate to your docker-compose.yaml file and type:
```
docker compose exec -it db /pocketbase superuser upsert email@example.com myverysecurepassword
```
Now, you will have access with the User" email@example.com and the Password "myverysecurepassword" to all tables in the backend and can modify the underlying data directly.
Now, you will have access with the user "email@example.com" and the password "myverysecurepassword" to all tables in the backend and can modify the underlying data directly.
## Modifying categories