From 77c5809e8a9b54e0115f27c3b67d20dbca126ce4 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 5 Jun 2025 16:02:42 +0200 Subject: [PATCH] fix SQLite --- .github/workflows/deploy-proxmox.yml | 9 ++++++++- README.md | 21 +++++++++++++++++++++ data/meldestelle.db | Bin 32768 -> 32768 bytes docker-compose.yml | 7 +++++++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-proxmox.yml b/.github/workflows/deploy-proxmox.yml index b7deac45..23d5b122 100644 --- a/.github/workflows/deploy-proxmox.yml +++ b/.github/workflows/deploy-proxmox.yml @@ -43,6 +43,13 @@ jobs: POSTGRES_USER: ${{ secrets.POSTGRES_USER }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} 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 # z.B. PGADMIN_DEFAULT_PASSWORD: ${{ secrets.PGADMIN_PASSWORD }} # Führt 'docker compose up' aus. @@ -53,4 +60,4 @@ jobs: # --build: Baut Images neu, falls nötig (besonders wichtig für den 'server'-Service) # -d: Startet Container im Hintergrund # --force-recreate: Erzwingt Neuerstellung, kann helfen, alte Zustände zu vermeiden - run: docker compose up --build -d --force-recreate \ No newline at end of file + run: docker compose up --build -d --force-recreate diff --git a/README.md b/README.md index bb6dd497..f50b5edd 100644 --- a/README.md +++ b/README.md @@ -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. 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), [Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/#compose-multiplatform), diff --git a/data/meldestelle.db b/data/meldestelle.db index 922ef380639c8c504b58898d5f631aac6aff4ac2..50b0e648fd75104fa0510afcd39a53b59bb90251 100644 GIT binary patch delta 411 zcmZvYF-yZx6ov0g@@ivSk5N?GD#k^TLbXA`%~TzVAc81@i?;Gm!M;kHTE~EYKrQ|N z!9O6`1Q#6~1YPZ>pil=34jlvslflj5aPGN$aJbiX71vcxk_@MV^9)y87XThe#RlOW zXV^f_Gt3#(bHm3P5hdzR!~Ll^)AV?1Ra6`^lS!M4cb8I%vT03P)15w~qDA;Y3vIML zFrXnR+W|Q-9j^^g{gNW;Fj`7OVx@a%Ei2t|HJk3 rQmKohLHNcOKK#yx|H^xeg}6ox+zM%dYgR}NT(v?<;EKhWMmnrtHi>N% delta 304 zcmZo@U}|V!njp={HBrWyk!xeZLVkV*1_l;>4+j3z{FC^j_&qiYDp>GO_KqE?;Je^N0%T+ z1w%PTc81MQ{NM81G6S{qa^|Jx