1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

Refactor Docker Compose configuration and add email backend documentation

This commit is contained in:
Sean Morley 2024-10-26 19:43:27 -04:00
parent 6daacabc1b
commit 6f8864a13d
2 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,28 @@
---
sidebar_position: 2
---
# Change Email Backend
To change the email backend, you can set the following variable in your docker-compose.yml under the server service:
## Using Console (default)
```yaml
environment:
- EMAIL_BACKEND='console'
```
## With SMTP
```yaml
environment:
- EMAIL_BACKEND='email'
- EMAIL_HOST='smtp.gmail.com'
- EMAIL_USE_TLS=False
- EMAIL_PORT=587
- EMAIL_USE_SSL=True
- EMAIL_HOST_USER='user'
- EMAIL_HOST_PASSWORD='password'
- DEFAULT_FROM_EMAIL='user@example.com'
```

View file

@ -517,9 +517,12 @@
dateString
] || []}
<h2 class="text-center font-semibold text-2xl mb-2 mt-4">
Day {i + 1} - {adjustedDate.toLocaleDateString(undefined, { timeZone: 'UTC' })}
<h2 class="text-center font-bold text-3xl mt-4">
Day {i + 1}
</h2>
<h3 class="text-center text-xl mb-2">
{adjustedDate.toLocaleDateString(undefined, { timeZone: 'UTC' })}
</h3>
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
{#if dayAdventures.length > 0}
{#each dayAdventures as adventure}