From 3e9332c37c45fa69fa6c958a22d5c5870f066467 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 16 Nov 2023 10:49:57 +0100 Subject: [PATCH] Add property for running behind reverse proxy It is disabled by default as this should only be enabled on the server. Fixes #29 --- src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 5ce43f5..ecddf76 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,3 +3,6 @@ ################################################ # spring.datasource.url=jdbc:h2:./db/kickstart # spring.jpa.hibernate.ddl-auto=update + +# Uncomment the folowing when running behind reverse proxy +#server.forward-headers-strategy=NATIVE