- Add EmailEdaConsentService for prod consent requests via SMTP
- Add EdaMailSender, EdaMailParser, EdaMailPoller for IMAP polling
- Polling interval: 15 min (configurable via eda.email.poll-interval-ms)
- Consumption data ingestion from XLSX email attachments
- Add @Profile('!prod') to SimulatedEda*Services as fallback
- Add EMAIL_AUTO to DataSource enum for automated email imports
- Add EDA email configuration to application-prod.yml and application-dev.yml
- Add unit tests for all new services
- Add docs/PLAN-EDA-KOMMUNIKATION.md with full implementation plan
All 232 tests passing.
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
spring:
|
|
datasource:
|
|
url: ${DATABASE_URL:jdbc:postgresql://localhost:5432/eegportal}
|
|
driver-class-name: ${DATABASE_DRIVER:org.postgresql.Driver}
|
|
username: ${DATABASE_USERNAME:eeg}
|
|
password: ${DATABASE_PASSWORD:}
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: ${JPA_DDL_AUTO:validate}
|
|
show-sql: false
|
|
properties:
|
|
hibernate:
|
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
|
mail:
|
|
host: ${MAIL_HOST:}
|
|
port: ${MAIL_PORT:587}
|
|
username: ${MAIL_USERNAME:}
|
|
password: ${MAIL_PASSWORD:}
|
|
properties:
|
|
mail:
|
|
smtp:
|
|
auth: true
|
|
starttls:
|
|
enable: true
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB
|
|
max-request-size: 50MB
|
|
|
|
jwt:
|
|
secret: ${JWT_SECRET}
|
|
|
|
app:
|
|
frontend-url: ${APP_FRONTEND_URL}
|
|
backend-url: ${APP_BACKEND_URL}
|
|
cors-origins: ${CORS_ORIGINS}
|
|
|
|
server:
|
|
port: ${SERVER_PORT:8080}
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: health,info
|
|
endpoint:
|
|
health:
|
|
show-details: when-authorized
|
|
|
|
logging:
|
|
level:
|
|
at.mueller.eeg: INFO
|
|
org.springframework.security: WARN
|
|
org.hibernate.SQL: WARN
|
|
|
|
eda:
|
|
email:
|
|
gateway-address: ${EDA_GATEWAY_EMAIL:eda-gateway@example.com}
|
|
poll-interval-ms: ${EDA_POLL_INTERVAL_MS:900000}
|
|
imap:
|
|
host: ${EDA_IMAP_HOST:}
|
|
port: ${EDA_IMAP_PORT:993}
|
|
username: ${EDA_IMAP_USERNAME:}
|
|
password: ${EDA_IMAP_PASSWORD:}
|
|
folder: INBOX
|
|
protocol: imaps
|
|
smtp:
|
|
host: ${EDA_SMTP_HOST:}
|
|
port: ${EDA_SMTP_PORT:587}
|
|
username: ${EDA_SMTP_USERNAME:}
|
|
password: ${EDA_SMTP_PASSWORD:}
|