From 6a373d835cc1c3433063384f087832c3b0aa0b8d Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Fri, 10 Jul 2026 11:24:26 +0200 Subject: [PATCH] =?UTF-8?q?Server-Port=20=C3=BCber=20SERVER=5FPORT=20aus?= =?UTF-8?q?=20der=20.env=20konfigurierbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .env.example | 3 +++ src/main/resources/application.properties | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 3f0c334..39f4074 100644 --- a/.env.example +++ b/.env.example @@ -3,3 +3,6 @@ # MongoDB-Verbindung fuer die Rechnungstemplates MONGODB_URI=mongodb://BENUTZER:PASSWORT@localhost:27017/pdf-tool?authSource=admin + +# HTTP-Port der Anwendung (Standard: 8083) +SERVER_PORT=8083 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a362db0..304b6ee 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,5 @@ spring.application.name=pdf-tool -server.port=8083 +server.port=${SERVER_PORT:8083} # Wird beim Build durch die Version aus der pom.xml ersetzt (Resource-Filtering) pdftool.version=@project.version@