fix SQLite

This commit is contained in:
stefan 2025-06-05 16:02:42 +02:00
parent 3b752bd90e
commit 77c5809e8a
4 changed files with 36 additions and 1 deletions

View File

@ -43,6 +43,13 @@ jobs:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }} POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }} POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
# Email configuration secrets
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
RECIPIENT_EMAIL: ${{ secrets.RECIPIENT_EMAIL }}
SMTP_SENDER_EMAIL: ${{ secrets.SMTP_SENDER_EMAIL }}
# Füge hier optional weitere Secrets hinzu, die deine Compose-Datei braucht # Füge hier optional weitere Secrets hinzu, die deine Compose-Datei braucht
# z.B. PGADMIN_DEFAULT_PASSWORD: ${{ secrets.PGADMIN_PASSWORD }} # z.B. PGADMIN_DEFAULT_PASSWORD: ${{ secrets.PGADMIN_PASSWORD }}
# Führt 'docker compose up' aus. # Führt 'docker compose up' aus.

View File

@ -16,6 +16,27 @@ This is a Kotlin Multiplatform project targeting Web, Desktop, Server.
* `/shared` is for the code that will be shared between all targets in the project. * `/shared` is for the code that will be shared between all targets in the project.
The most important subfolder is `commonMain`. If preferred, you can add code to the platform-specific folders here too. The most important subfolder is `commonMain`. If preferred, you can add code to the platform-specific folders here too.
## Email Configuration
The application uses email to send notifications for form submissions. The email configuration can be set up in several ways:
1. **Environment Variables**: The application reads email configuration from environment variables.
2. **.env File**: If environment variables are not set, the application looks for a `.env` file.
3. **Default Values**: If neither environment variables nor a `.env` file is found, default values are used.
### GitHub Actions Secrets
For deployment with GitHub Actions, the email configuration is stored in GitHub repository secrets. The following secrets need to be set up in your GitHub repository:
- `SMTP_HOST`: The SMTP server host (e.g., smtp.gmail.com)
- `SMTP_PORT`: The SMTP server port (e.g., 587)
- `SMTP_USER`: The SMTP username (usually your email address)
- `SMTP_PASSWORD`: The SMTP password or app password
- `RECIPIENT_EMAIL`: The email address that will receive form submissions
- `SMTP_SENDER_EMAIL`: The email address that will appear as the sender (usually the same as SMTP_USER)
These secrets are automatically passed to the Docker container during deployment via the GitHub Actions workflow.
Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html), Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html),
[Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/#compose-multiplatform), [Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/#compose-multiplatform),

Binary file not shown.

View File

@ -11,6 +11,13 @@ services:
- ./data:/app/data # Direktes Mapping des data Verzeichnisses - ./data:/app/data # Direktes Mapping des data Verzeichnisses
environment: environment:
- USE_SQLITE=true - USE_SQLITE=true
# Email configuration - uses GitHub Actions secrets if available, otherwise fallback values
- SMTP_HOST=${SMTP_HOST:-smtp.gmail.com}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-your-email@gmail.com}
- SMTP_PASSWORD=${SMTP_PASSWORD:-your-app-password}
- RECIPIENT_EMAIL=${RECIPIENT_EMAIL:-recipient@example.com}
- SMTP_SENDER_EMAIL=${SMTP_SENDER_EMAIL:-your-email@gmail.com}
networks: networks:
- meldestelle-net - meldestelle-net