feat: update environment configuration and enhance development setup
Deploy Development / deploy (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 1m54s

- Added optional DEV_APP_URL and DEV_ALLOWED_ORIGINS to docker-compose.dev-env.yml for improved local development flexibility.
- Updated .env.example to reflect new environment variables for development.
- Modified backend main.py to support rate limiting on authentication routes and improved CORS handling.
- Enhanced deploy-dev.yml to include health checks for the frontend service, ensuring better monitoring during development.
This commit is contained in:
Lars committed 2026-04-29 09:57:36 +02:00
1 parent d67026e25a
commit e6a8931da8
5 files changed
+25 -6

No files matched your search

+8 -3
View File
@@ -34,8 +34,10 @@ services:
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
SMTP_FROM: ${SMTP_FROM}
APP_URL: http://192.168.2.49:3098
ALLOWED_ORIGINS: http://192.168.2.49:3098
# Öffentliche Dev-URL (E-Mail-Links); lokaler Zugriff per IP bleibt über ALLOWED_ORIGINS möglich
APP_URL: "${DEV_APP_URL:-https://dev.shinkan.jinkendo.de}"
# Login/Register vom Browser: HTTPS-Subdomain und optional LAN-IP (Compose überschreibbar per .env)
ALLOWED_ORIGINS: "${DEV_ALLOWED_ORIGINS:-https://dev.shinkan.jinkendo.de,http://192.168.2.49:3098}"
ENVIRONMENT: development
MEDIAWIKI_API_URL: https://karatetrainer.net/api.php
MEDIAWIKI_USER: Jinkendo
@@ -58,11 +60,14 @@ services:
build:
context: ./frontend
dockerfile: Dockerfile
# Leer = relative /api/*-URLs → gleicher Host wie die SPA (vermeidet Mixed Content HTTPS→HTTP)
args:
VITE_API_URL: http://192.168.2.49:8098
VITE_API_URL: ""
container_name: dev-shinkan-ui
ports:
- "3098:80"
depends_on:
- backend
restart: unless-stopped
networks:
- dev-shinkan-network