fc98e5aad1
- application.properties: multipart max-file/request-size auf 10MB (nginx client_max_body_size muss serverseitig passend gesetzt sein) - ProfileController: hochgeladene Profilbilder werden serverseitig auf max. 400px herunterskaliert und als JPEG normalisiert gespeichert (statt der Originaldatei roh); nicht lesbare Bilder werden ignoriert - SecurityConfig: CSRF aktiviert; Spiele-JSON-APIs (/api/games, /api/techtacular, /api/mindmatch) ausgenommen; GET-Logout erlaubt, da die Logout-Links in den Templates GET sind Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
52 lines
1.5 KiB
Properties
52 lines
1.5 KiB
Properties
# =======================
|
|
# Datenbankverbindung (PostgreSQL)
|
|
# =======================
|
|
|
|
spring.config.import=optional:file:.env[.properties]
|
|
spring.datasource.url=${MINDFLUX_DB_URL:jdbc:postgresql://localhost:5433/mindflux_db}
|
|
spring.datasource.username=${MINDFLUX_DB_USER:mindflux_user}
|
|
spring.datasource.password=${MINDFLUX_DB_PASSWORD}
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
|
|
|
# =======================
|
|
# Hibernate / JPA
|
|
# =======================
|
|
|
|
spring.jpa.hibernate.ddl-auto=validate
|
|
spring.jpa.show-sql=false
|
|
spring.jpa.open-in-view=false
|
|
|
|
# =======================
|
|
# Datenbank-Migrationen
|
|
# =======================
|
|
|
|
spring.flyway.enabled=true
|
|
|
|
# =======================
|
|
# SQL-Initialisierung
|
|
# =======================
|
|
|
|
spring.sql.init.mode=never
|
|
|
|
# =======================
|
|
# Server
|
|
# =======================
|
|
|
|
server.port=8282
|
|
server.forward-headers-strategy=framework
|
|
server.servlet.session.cookie.secure=${MINDFLUX_COOKIE_SECURE:false}
|
|
server.servlet.session.cookie.http-only=true
|
|
server.servlet.session.cookie.same-site=lax
|
|
spring.output.ansi.enabled=ALWAYS
|
|
|
|
# Öffentliche Basis-URL, z. B. für künftig erzeugte absolute Links.
|
|
mindflux.public-url=${MINDFLUX_PUBLIC_URL:http://localhost:8282}
|
|
|
|
# =======================
|
|
# Datei-Uploads (Profilbilder)
|
|
# =======================
|
|
# Hinweis: Der nginx-Reverse-Proxy muss client_max_body_size passend gesetzt haben,
|
|
# sonst greift schon dort ein 413, bevor die App den Upload sieht.
|
|
spring.servlet.multipart.max-file-size=10MB
|
|
spring.servlet.multipart.max-request-size=10MB
|