Skip to content

Commit

Permalink
Added support for passing ports in via environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
2martens committed Oct 29, 2023
1 parent 517f2b4 commit b04d6f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.

This file was deleted.

4 changes: 0 additions & 4 deletions module-server/src/main/resources/application-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
server.port: 12000
management.server.port: 12001


spring:
config:
import:
Expand Down
4 changes: 2 additions & 2 deletions module-server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
server:
port: 12000
port: ${PORT:12000}
shutdown: graceful
forward-headers-strategy: framework

### technical configurations ###
management:
# for security, don't use same port as application
server.port: 12001
server.port: ${ACTUATOR_PORT:12001}
health:
livenessState.enabled: true
readinessState.enabled: true
Expand Down

0 comments on commit b04d6f4

Please sign in to comment.