- Implemented a new SQL migration for wiki import tracking tables. - Created an import router for handling MediaWiki imports of exercises, skills, and methods. - Developed a Semantic MediaWiki API client for direct API interactions. - Added a mapper to convert SMW properties to local database fields. - Introduced background tasks for asynchronous import processing. - Implemented logging and error handling for import operations. - Added endpoints for previewing imports, checking import status, and managing import references.
36 lines
907 B
Plaintext
36 lines
907 B
Plaintext
# Database
|
|
DB_HOST=postgres
|
|
DB_PORT=5432
|
|
DB_NAME=shinkan
|
|
DB_USER=shinkan_user
|
|
DB_PASSWORD=CHANGE_ME_SECURE_PASSWORD
|
|
|
|
# OpenRouter (KI - optional)
|
|
OPENROUTER_API_KEY=your_api_key_here
|
|
OPENROUTER_MODEL=anthropic/claude-sonnet-4
|
|
|
|
# SMTP (E-Mail)
|
|
SMTP_HOST=smtp.example.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=noreply@jinkendo.de
|
|
SMTP_PASS=your_smtp_password
|
|
SMTP_FROM=noreply@jinkendo.de
|
|
|
|
# App
|
|
APP_URL=https://shinkan.jinkendo.de
|
|
ALLOWED_ORIGINS=https://shinkan.jinkendo.de
|
|
ENVIRONMENT=production
|
|
|
|
# Media Storage
|
|
MEDIA_DIR=/app/media
|
|
|
|
# MediaWiki Import (Semantic MediaWiki)
|
|
MEDIAWIKI_API_URL=https://karatetrainer.net/api.php
|
|
MEDIAWIKI_USER=Jinkendo
|
|
MEDIAWIKI_PASSWORD=CHANGE_ME
|
|
# Kategorienamen im Wiki (echte Namen von karatetrainer.net)
|
|
MEDIAWIKI_CATEGORY_EXERCISES=Übungen
|
|
MEDIAWIKI_CATEGORY_SKILLS=Fähigkeitsbeschreibung
|
|
MEDIAWIKI_CATEGORY_METHODS=Methodenbeschreibung
|
|
MEDIAWIKI_CATEGORY_MODELS=Reifegradmodelle
|