From d7e6c6ca7217ae714f6858dfa75501ad0e4cd6d5 Mon Sep 17 00:00:00 2001 From: jhonatapers Date: Thu, 22 May 2025 12:58:35 -0300 Subject: [PATCH] feat: add forward-headers-strategy configuration to environment files for proxy support --- .env.example | 1 + infrastructure/src/main/resources/application-env.yml | 1 + infrastructure/src/main/resources/application.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.env.example b/.env.example index c4d8598e..82c9763c 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ SPRING_PROFILES_ACTIVE=env SERVER_PORT=8080 +FORWARD_HEADERS_STRATEGY=framework #none for no proxy, framework for Spring Cloud Gateway, native for native proxy REQUEST_TIMEOUT=60000 KEYCLOAK_HOST=http://localhost:8090 diff --git a/infrastructure/src/main/resources/application-env.yml b/infrastructure/src/main/resources/application-env.yml index 8290abb2..6a0f0baf 100644 --- a/infrastructure/src/main/resources/application-env.yml +++ b/infrastructure/src/main/resources/application-env.yml @@ -1,5 +1,6 @@ server: port: ${SERVER_PORT} + forward-headers-strategy: ${FORWARD_HEADERS_STRATEGY:none} keycloak: realm: ${KEYCLOAK_REALM} diff --git a/infrastructure/src/main/resources/application.yml b/infrastructure/src/main/resources/application.yml index dcb18d80..e933fa4f 100644 --- a/infrastructure/src/main/resources/application.yml +++ b/infrastructure/src/main/resources/application.yml @@ -1,5 +1,6 @@ server: port: 80 + forward-headers-strategy: none servlet: context-path: /api compression: