From 4708da0c4384353e8d3f8776abb34838c5c80d34 Mon Sep 17 00:00:00 2001 From: akastijn Date: Sun, 19 Jul 2026 00:32:57 +0200 Subject: [PATCH] Configure Tomcat remote IP settings and forward headers strategy for improved proxy support --- backend/src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 353d5bd..3382b7b 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -20,3 +20,6 @@ spring.mail.properties.mail.smtp.ssl.enable=true spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory chat.allowed-ip=${ALLOWED_IP:10.0.0.0/24} management.endpoints.web.exposure.include=mappings +server.forward-headers-strategy=native +server.tomcat.remoteip.remote-ip-header=CF-Connecting-IP +server.tomcat.remoteip.trusted-proxies=10\\.0\\.0\\.103