### fix: 36 verbessere SMTP-Logging und Versionsmarker
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/services/mail/Dockerfile, mail-service, mail-service) (push) Successful in 5m48s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 3m55s

- **dc-planb.yaml:** SMTP-Parameter hart codiert (Host, Port, Benutzer, Passwort).
- **mail-service:** Logging erweitert, SMTP-Konfiguration (`host`, `port`, `user`) wird angezeigt.
- **WebMainScreen:** Versionsmarker auf `v2026-04-23.36 - SMTP DIAGNOSE` aktualisiert.
This commit is contained in:
Stefan Mogeritsch 2026-04-23 18:15:45 +02:00
parent 9659fe3f8a
commit 9ab914dbfb
3 changed files with 11 additions and 6 deletions

View File

@ -33,9 +33,14 @@ class MailServiceApplication(private val env: Environment) {
val springPort = env.getProperty("server.port", "8083")
val appName = env.getProperty("spring.application.name", "mail-service")
val mailHost = env.getProperty("spring.mail.host", "N/A")
val mailPort = env.getProperty("spring.mail.port", "N/A")
val mailUser = env.getProperty("spring.mail.username", "N/A")
log.info("----------------------------------------------------------")
log.info("Application '{}' is running!", appName)
log.info("Spring Management Port: {}", springPort)
log.info("SMTP Config: host={}, port={}, user={}", mailHost, mailPort, mailUser)
log.info("Profiles: {}", env.activeProfiles.joinToString(", "))
log.info("----------------------------------------------------------")
}

View File

@ -21,17 +21,17 @@ services:
restart: unless-stopped
environment:
# Server-Port im Container (Spring Boot)
SERVER_PORT: ${SERVER_PORT:-8085}
SERVER_PORT: "8085"
# Plan-B: Zipkin-Fehler unterdrücken
MANAGEMENT_TRACING_ENABLED: "false"
SPRING_ZIPKIN_ENABLED: "false"
# SMTP (World4You - PROD)
SPRING_MAIL_HOST: ${SPRING_MAIL_HOST:-smtp.world4you.com}
SPRING_MAIL_PORT: ${SPRING_MAIL_PORT:-587}
SPRING_MAIL_USERNAME: ${SPRING_MAIL_USERNAME:-online-nennen@mo-code.at}
SPRING_MAIL_PASSWORD: ${SPRING_MAIL_PASSWORD:-Mogi#2reiten}
SPRING_MAIL_HOST: "smtp.world4you.com"
SPRING_MAIL_PORT: "587"
SPRING_MAIL_USERNAME: "online-nennen@mo-code.at"
SPRING_MAIL_PASSWORD: "Mogi#2reiten"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE: "true"

View File

@ -130,7 +130,7 @@ fun MainAppContent() {
// Dezentraler Versions-Marker in der unteren rechten Ecke
Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) {
Text(
text = "v2026-04-23.35 - SMTP FIX",
text = "v2026-04-23.36 - SMTP DIAGNOSE",
style = MaterialTheme.typography.labelSmall,
color = Color.LightGray.copy(alpha = 0.5f)
)