Skip to content

Commit e0a25e0

Browse files
committed
Configures server to trust forward headers
Configures the server to trust forward headers, ensuring proper handling of requests when behind a proxy or load balancer.
1 parent 9fed4c7 commit e0a25e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/resources/application-prod.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ spring.data.mongodb.database=${MONGO_DATABASE}
55
spring.data.mongodb.username=${MONGO_USERNAME}
66
spring.data.mongodb.password=${MONGO_PASSWORD}
77

8-
# Configuracao de Logs
98
logging.level.root=INFO
109
logging.level.com.dmware.api_onibusbh=DEBUG
11-
logging.level.org.springframework.web=DEBUG
10+
logging.level.org.springframework.web=DEBUG
11+
12+
server.forward-headers-strategy=framework

0 commit comments

Comments
 (0)