Skip to content

Commit

Permalink
Closes #247 Add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bukajsytlos committed Nov 4, 2018
1 parent d5de7cc commit 039454b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/main/resources/config/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ spring:
password: ${DATABASE_PASSWORD:banana}
jpa:
show-sql: true

boot:
admin:
client:
url: ${ADMIN_URL:http://localhost:8030}
username: ${ADMIN_SERVER_USERNAME:admin}
password: ${ADMIN_SERVER_PASSWORD:secret}
logging:
level:
com.faforever.api: trace
6 changes: 6 additions & 0 deletions src/main/resources/config/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ spring:
password: ${DATABASE_PASSWORD}
jpa:
show-sql: false
boot:
admin:
client:
url: ${ADMIN_URL}
username: ${ADMIN_SERVER_USERNAME}
password: ${ADMIN_SERVER_PASSWORD}

logging:
path: ${LOG_FILE_DIRECTORY:/tmp}
9 changes: 6 additions & 3 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ server:
max-http-post-size: 314572800

management:
port: 8011
security:
enabled: false
server:
port: ${MANAGEMENT_PORT:8011}
address: ${MANAGEMENT_ADDRESS:}
endpoints:
web:
base-path: ${MANAGEMENT_BASE_PATH:/manage}

logging:
level:
Expand Down

0 comments on commit 039454b

Please sign in to comment.