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@